Displaying 20 results from an estimated 20 matches for "swfdec_loader_get_filenam".
Did you mean:
swfdec_loader_get_filename
2007 Feb 07
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdebug.c
...SPONSE_ACCEPT, NULL);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
int w, h;
diff-tree 06c1025c1946a32b4f2a8f8ebab29736ec231621 (from 17f85210c89d16ae4824771d41ea5bf41988b123)
Author: Benjamin Otte <otte@gnome.org>
Date: Thu Feb 8 00:11:26 2007 +0100
add swfdec_loader_get_filename()
This function is supposed to give a useful filename for the loader, so it
can be used to save it locally.
diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt
index 937b8db..3a93f97 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -20,6 +20,7 @@ Swfde...
2007 Feb 08
0
5 commits - configure.ac NEWS
...Thu Feb 8 19:09:47 2007 +0100
add sound backend choice to NEWS
diff --git a/NEWS b/NEWS
index 9a828c5..e3cecde 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ it far easier and a lot more stable to r
- Implement color transformations on images.
- Support some more ActionScript codes.
- Added swfdec_loader_get_filename() function to exported API.
+- Allow compiling tests and tools without ALSA support
- Lots of bugfixes.
- Lots of new tests and debugging tools.
diff-tree 1e3cd6438989c068b4cbbf841d96b321ae7ba8ae (from aeda99814414d201c020d71e1717f07ad2c1c9ad)
Author: Benjamin Otte <otte@gnome.org>
Date:...
2007 Mar 20
0
5 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_net_stream.c
....txt
index 26a98ab..f8a4514 100644
--- a/doc/swfdec-sections.txt
+++ b/doc/swfdec-sections.txt
@@ -22,8 +22,9 @@ swfdec_loader_new_from_file
swfdec_loader_push
swfdec_loader_eof
swfdec_loader_error
-swfdec_loader_get_size
swfdec_loader_set_size
+swfdec_loader_get_size
+swfdec_loader_get_loaded
swfdec_loader_get_filename
swfdec_loader_get_data_type
<SUBSECTION Standard>
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 1fd0e65..69c460f 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -76,7 +76,8 @@ enum {
PROP_ERROR,
PROP_EOF,
PROP_DATA_TYPE,
- PROP...
2007 Mar 16
0
libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_xml.c
...>
Date: Fri Mar 16 16:35:10 2007 +0100
add the concept of data types so we can identify what we load
Every loader now has an associated SwfdecLoaderDataType that's supposed
to tell what the data is used for. New functions for using it were added.
Includes an update to swfdec_loader_get_filename() that automatically adds
the correct extension.
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 4334562..8cd432c 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -59,7 +59,8 @@
enum {
PROP_0,
PROP_ERROR,
- PROP_EOF
+ PROP_EOF,
+ PRO...
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...the old compiler source files
add the temporary tmp file
fix code assuming sound->n_samples is in decoded format instead of 44100kHz
s/unsigned int/SwfdecColor/ for colors
add README for image directory
add failing jpeg test
improve debugging output
add swfdec_loader_get_filename()
use a save icon when saving
fix potential segfault when DefineFunction is called inside DefineFunction
Fix crash when trying to use a video stream of a placeholder
Make the filename be the part of the uri that sits before the first '?' and does not contain a '...
2007 Sep 14
0
2 commits - libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_loader.c
...gnome.org>
Date: Fri Sep 14 23:52:57 2007 +0200
don't remove only the first directory, but all of them
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index b6885e7..9bde057 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -444,7 +444,7 @@ swfdec_loader_get_filename (SwfdecLoader
url = swfdec_loader_get_url (loader);
path = swfdec_url_get_path (url);
if (path) {
- char *s = strchr (path, '/');
+ char *s = strrchr (path, '/');
if (s)
path = s + 1;
if (path[0] == 0)
diff-tree 3a6b5c7b1cb39e13e6f1448a9dd6914555904c...
2007 Aug 02
0
libswfdec/swfdec_loader.c
...ecURL *url;
g_return_val_if_fail (SWFDEC_IS_LOADER (loader), NULL);
- g_return_val_if_fail (url != NULL, NULL);
+ g_return_val_if_fail (url_string != NULL, NULL);
g_return_val_if_fail (data != NULL || data_len == 0, NULL);
klass = SWFDEC_LOADER_GET_CLASS (loader);
@@ -422,7 +422,7 @@ swfdec_loader_get_filename (SwfdecLoader
{
const SwfdecURL *url;
const char *path, *ext;
- char *ret;
+ char *ret = NULL;
g_return_val_if_fail (SWFDEC_IS_LOADER (loader), NULL);
2007 Mar 16
0
libswfdec/swfdec_loader.c
...)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Mar 16 22:22:58 2007 +0100
fix filename computation
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 8cd432c..29abd3f 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -448,18 +448,17 @@ swfdec_loader_get_filename (SwfdecLoader
}
ret = g_filename_from_utf8 (start, end ? end - start : -1, NULL, NULL, NULL);
if (ret) {
- char *dot;
const char *ext;
ext = swfdec_loader_data_type_get_extension (loader->data_type);
- if (*ext && (dot = strrchr (ret, '.'))) {
+...
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...n Otte <otte@gnome.org>
Date: Sat Feb 17 13:32:41 2007 +0100
apparently / doesn't get escaped either
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 29ca92c..49d7642 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -394,7 +394,7 @@ swfdec_loader_get_filename (SwfdecLoader
}
/* if speed ever gets an issue, use a 256 byte array instead of strchr */
-static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.";
+static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabc...
2007 Feb 08
0
3 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_script.c libswfdec/swfdec_video.c
...s before the first '?' and does not contain a '/'
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 557fa1c..756e174 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -365,19 +365,28 @@ swfdec_loader_eof (SwfdecLoader *loader)
char *
swfdec_loader_get_filename (SwfdecLoader *loader)
{
- char *start, *ret;
+ char *start, *end, *ret;
g_return_val_if_fail (SWFDEC_IS_LOADER (loader), NULL);
/* every loader must set this */
g_return_val_if_fail (loader->url != NULL, NULL);
- start = strrchr (loader->url, '/');
- if (start == N...
2007 Mar 16
0
5 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c
...+++ b/doc/swfdec-sections.txt
@@ -4,6 +4,7 @@
SwfdecAudio
swfdec_audio_render
<SUBSECTION Standard>
+SwfdecAudioClass
SWFDEC_AUDIO
SWFDEC_IS_AUDIO
SWFDEC_TYPE_AUDIO
@@ -20,8 +21,11 @@ SwfdecLoader
swfdec_loader_new_from_file
swfdec_loader_push
swfdec_loader_eof
+swfdec_loader_error
swfdec_loader_get_filename
+swfdec_loader_get_data_type
<SUBSECTION Standard>
+SwfdecLoaderClass
SWFDEC_LOADER
SWFDEC_IS_LOADER
SWFDEC_TYPE_LOADER
@@ -34,7 +38,6 @@ SWFDEC_LOADER_GET_CLASS
<SECTION>
<FILE>SwfdecPlayer</FILE>
<TITLE>SwfdecPlayer</TITLE>
-SwfdecMouseCursor
SwfdecPla...
2008 Jan 14
0
player/swfdec-player.ui player/swfdec-window.c player/swfdec-window.h
...;
+}
+
+static void
+swfdec_window_player_next_event (SwfdecPlayer *player, GParamSpec *pspec, SwfdecWindow *window)
+{
+ if (!swfdec_player_is_initialized (player) && swfdec_player_get_next_event (player) < 0)
+ swfdec_window_error (window, _("%s is not a Flash file."),
+ swfdec_loader_get_filename (window->loader));
+}
+
+static void
swfdec_window_player_initialized (SwfdecPlayer *player, GParamSpec *pspec, SwfdecWindow *window)
{
static const char *mime[2] = { "swfdec-player", NULL };
@@ -87,6 +103,7 @@ swfdec_window_player_initialized (SwfdecPlayer *player, GParamSpec *p...
2007 Mar 26
0
6 commits - doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/swfdec_loader.c player/swfplay.c swfdec-gtk.pc.in
...gt;
Date: Mon Mar 26 21:15:18 2007 +0200
remove debugging g_print
And that was even in the release...
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 69c460f..81d536c 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -496,7 +496,6 @@ swfdec_loader_get_filename (SwfdecLoader
char *dot = strrchr (ret, '.');
char *real;
guint len = dot ? strlen (dot) : G_MAXUINT;
- g_print ("ret: %s, dot: %s, ext: %s\n", ret, dot, ext);
if (len <= 5)
*dot = '\0';
real = g_strdup_printf ("%s.%s"...
2007 Oct 28
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_load_object.c
...t_url (SwfdecLoader * loader);
void swfdec_loader_set_size (SwfdecLoader * loader,
gulong size);
-gulong swfdec_loader_get_size (SwfdecLoader * loader);
+glong swfdec_loader_get_size (SwfdecLoader * loader);
gulong swfdec_loader_get_loaded (SwfdecLoader * loader);
char * swfdec_loader_get_filename (SwfdecLoader * loader);
SwfdecLoaderDataType
diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c
index c401125..fa119ba 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -412,19 +412,19 @@ swfdec_net_stream_get_variable (SwfdecAsObject *obj...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...the old compiler source files
add the temporary tmp file
fix code assuming sound->n_samples is in decoded format instead of 44100kHz
s/unsigned int/SwfdecColor/ for colors
add README for image directory
add failing jpeg test
improve debugging output
add swfdec_loader_get_filename()
use a save icon when saving
fix potential segfault when DefineFunction is called inside DefineFunction
Fix crash when trying to use a video stream of a placeholder
Make the filename be the part of the uri that sits before the first '?' and does not contain a '...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...the old compiler source files
add the temporary tmp file
fix code assuming sound->n_samples is in decoded format instead of 44100kHz
s/unsigned int/SwfdecColor/ for colors
add README for image directory
add failing jpeg test
improve debugging output
add swfdec_loader_get_filename()
use a save icon when saving
fix potential segfault when DefineFunction is called inside DefineFunction
Fix crash when trying to use a video stream of a placeholder
Make the filename be the part of the uri that sits before the first '?' and does not contain a '...
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...Date: Thu Feb 15 17:23:57 2007 +0100
Add code to convert to/from application/x-www-form-urlencoded mime type
diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c
index 756e174..70027be 100644
--- a/libswfdec/swfdec_loader.c
+++ b/libswfdec/swfdec_loader.c
@@ -393,3 +393,147 @@ swfdec_loader_get_filename (SwfdecLoader
return ret;
}
+static void
+swfdec_urlencode_append_string (GString *str, const char *s)
+{
+ g_assert (s != NULL);
+ while (*s) {
+ if (g_ascii_isalnum (*s))
+ g_string_append_c (str, *s);
+ else if (*s == ' ')
+ g_string_append_c (str, '+');...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
...- SWFDEC_FILE_LOADER (loader)->dir = g_path_get_dirname (loader->url);
+ g_assert (loader->url);
+ g_free (url);
if (buf == NULL) {
swfdec_loader_error (loader, error->message);
g_error_free (error);
@@ -463,50 +462,59 @@ swfdec_loader_eof (SwfdecLoader *loader)
char *
swfdec_loader_get_filename (SwfdecLoader *loader)
{
- char *start, *end, *ret;
+ const SwfdecURL *url;
+ const char *path, *ext;
+ char *ret;
g_return_val_if_fail (SWFDEC_IS_LOADER (loader), NULL);
- /* every loader must set this */
- g_return_val_if_fail (loader->url != NULL, NULL);
- end = strchr (loader...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
...e (void);
@@ -68,6 +65,8 @@ SwfdecLoader * swfdec_loader_new_from_fi
void swfdec_loader_push (SwfdecLoader * loader,
SwfdecBuffer * buffer);
void swfdec_loader_eof (SwfdecLoader * loader);
+void swfdec_loader_error (SwfdecLoader * loader,
+ const char * error);
char * swfdec_loader_get_filename (SwfdecLoader * loader);
diff --git a/libswfdec/swfdec_loader_internal.h b/libswfdec/swfdec_loader_internal.h
index 8f9a3db..c49f078 100644
--- a/libswfdec/swfdec_loader_internal.h
+++ b/libswfdec/swfdec_loader_internal.h
@@ -1,5 +1,5 @@
/* Swfdec
- * Copyright (C) 2006 Benjamin Otte &...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...t;size == 0) {
- gulong bytes = swfdec_loader_get_loaded (loader);
- if (bytes)
- swfdec_loader_set_size (loader, bytes);
- }
- g_object_notify (G_OBJECT (loader), "eof");
- loader->state = SWFDEC_LOADER_STATE_EOF;
- swfdec_loader_queue_processing (loader);
-}
-
-/**
* swfdec_loader_get_filename:
* @loader: a #SwfdecLoader
*
@@ -458,6 +275,27 @@ swfdec_loader_get_filename (SwfdecLoader *loader)
}
/**
+ * swfdec_loader_set_url:
+ * @loader: the loader to update
+ * @url: string specifying the new URL. The url must be a valid absolute URL.
+ *
+ * Updates the url of the given @loade...