search for: swfdec_urldecode_on

Displaying 10 results from an estimated 10 matches for "swfdec_urldecode_on".

Did you mean: swfdec_urldecode_one
2007 Nov 10
0
[PATCH] swfdec: better variable parsing.
...eing passed in the value of a variable and other things. Pages which where broken included the flash at the upper right corner of http://www.kanal5.se and the presentation of houses for sale at http://www.svenskfast.se. Solution: use swfdec_as_object_decode and kill off swfdec_movie_set_variables, swfdec_urldecode_one_string, swfdec_urldecode_one and the flawed testcase in test/various/urlencode.c. --- Since the segfault where just fixed in git, I've now tested this patch which works perfectly as far as I can see. diffstat: b/libswfdec/swfdec_loader.c | 106 ---------------------------------...
2007 Nov 12
0
2 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/various
...of a variable and other things. Pages which where broken included the flash at the upper right corner of http://www.kanal5.se and the presentation of houses for sale at http://www.svenskfast.se. Solution: use swfdec_as_object_decode and kill off swfdec_movie_set_variables, swfdec_urldecode_one_string, swfdec_urldecode_one and the flawed testcase in test/various/urlencode.c. diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 7595c4e..f2c16f6 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -608,54 +608,6 @@ swfdec_urlencode_append_strin...
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
...== '\0') { + ERROR ("string only contains %u properties, but should contain %u", i, test->n_props); + break; + } + if (i > 0) { + if (*s != '&') { + ERROR ("properties not delimited by &"); + } + s++; + } + if (!swfdec_urldecode_one (s, &name, &value, &s)) { + ERROR ("could not decode property %u", i); + continue; + } + if (!g_str_equal (name, test->names[i])) { + ERROR ("names don't match: is %s, should be %s", name, test->names[i]); + } + if (!g_str_equal...
2007 Jun 13
1
Branch 'as' - libswfdec/swfdec_movie.c
libswfdec/swfdec_movie.c | 3 +++ 1 files changed, 3 insertions(+) New commits: diff-tree 774031e0bb34710e971ab143aac62300907486d3 (from a6c380467a9cb20fd2d151d74603f1de5637cabf) Author: Benjamin Otte <otte at gnome.org> Date: Wed Jun 13 16:34:43 2007 +0200 fix matrix calculation - 3 lines got lost in the reorg diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
2007 Jul 13
0
4 commits - configure.ac libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_object.h libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h NEWS
...(SWFDEC_IS_SCRIPTABLE (script)); - g_return_if_fail (variables != NULL); - - SWFDEC_DEBUG ("setting variables on %p: %s", script, variables); - object = swfdec_scriptable_get_object (script); - while (TRUE) { - char *name, *value; - JSString *string; - jsval val; - - if (!swfdec_urldecode_one (variables, &name, &value, &variables)) { - SWFDEC_WARNING ("variables invalid at \"%s\"", variables); - break; - } - if (*variables != '\0' && *variables != '&') { - SWFDEC_WARNING ("variables not delimited with...
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
...pt, const char *variables) +{ + JSObject *object; + + g_return_if_fail (SWFDEC_IS_SCRIPTABLE (script)); + g_return_if_fail (variables != NULL); + + object = swfdec_scriptable_get_object (script); + while (*variables) { + char *name, *value; + JSString *string; + jsval val; + + if (!swfdec_urldecode_one (variables, &name, &value, &variables)) { + SWFDEC_WARNING ("variables invalid at \"%s\"", variables); + break; + } + if (*variables != '&' && *variables != '\0') { + SWFDEC_WARNING ("variables not delimited with...
2007 Aug 01
0
9 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_frame.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_loadertarget.c libswfdec/swfdec_loadertarget.h libswfdec/swfdec_movie.c
...void swfdec_loader_set_target (SwfdecLoader * loader, SwfdecLoaderTarget * target); void swfdec_loader_set_data_type (SwfdecLoader * loader, SwfdecLoaderDataType type); -void swfdec_loader_error_locked (SwfdecLoader * loader, - const char * error); gboolean swfdec_urldecode_one (const char * string, char ** name, diff --git a/libswfdec/swfdec_loadertarget.c b/libswfdec/swfdec_loadertarget.c index f702f99..aa939b7 100644 --- a/libswfdec/swfdec_loadertarget.c +++ b/libswfdec/swfdec_loadertarget.c @@ -83,8 +83,7 @@ swfdec_loader_target_parse (SwfdecLoader g_r...
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
...SwfdecLoader * swfdec_loader_load (Swf void swfdec_loader_parse (SwfdecLoader * loader); void swfdec_loader_set_target (SwfdecLoader * loader, SwfdecLoaderTarget * target); +void swfdec_loader_error_locked (SwfdecLoader * loader, + const char * error); gboolean swfdec_urldecode_one (const char * string, char ** name, diff --git a/libswfdec/swfdec_loadertarget.c b/libswfdec/swfdec_loadertarget.c index 218a156..8fd629d 100644 --- a/libswfdec/swfdec_loadertarget.c +++ b/libswfdec/swfdec_loadertarget.c @@ -22,6 +22,7 @@ #endif #include "swfdec_loadertarget.h...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...istener->n_entries + 16; mem = g_try_realloc (listener->entries, sizeof (SwfdecListenerEntry) * new_len); diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 2416c61..aa41e59 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -694,7 +694,7 @@ swfdec_urldecode_one_string (const char * to the given @str **/ void -swfdec_string_append_urlencoded (GString *str, char *name, char *value) +swfdec_string_append_urlencoded (GString *str, const char *name, const char *value) { g_return_if_fail (str != NULL); g_return_if_fail (name != NULL); diff --git a...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...return_if_fail (SWFDEC_IS_MOVIE (movie)); + g_return_if_fail (variables != NULL); + + as = SWFDEC_AS_OBJECT (movie); + SWFDEC_DEBUG ("setting variables on %p: %s", movie, variables); + while (TRUE) { + char *name, *value; + const char *asname; + SwfdecAsValue val; + + if (!swfdec_urldecode_one (variables, &name, &value, &variables)) { + SWFDEC_WARNING ("variables invalid at \"%s\"", variables); + break; + } + if (*variables != '\0' && *variables != '&') { + SWFDEC_WARNING ("variables not delimited with...