search for: swfdec_movie_set_variables

Displaying 20 results from an estimated 20 matches for "swfdec_movie_set_variables".

2007 Nov 10
0
[PATCH] swfdec: better variable parsing.
Use swfdec_as_object_decode for parsing variables passed in webpages to flash. swfdec_movie_set_variables (and friends) can't stuff like an url being 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_deco...
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
...AIRO_CFLAGS) -urlencode_LDFLAGS = $(SWFDEC_LIBS) $(CAIRO_LIBS) - commit b72f91ccfcdd70cc3f9b6edbc4b59cce97263990 Author: Andreas Henriksson <andreas at fatal.se> Date: Mon Nov 12 20:55:41 2007 +0100 Use swfdec_as_object_decode for parsing variables passed in webpages to flash. swfdec_movie_set_variables (and friends) can't stuff like an url being 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: u...
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 12
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie_as.c test/trace
libswfdec/swfdec_as_interpret.c | 5 + libswfdec/swfdec_movie.c | 21 +++++--- libswfdec/swfdec_sprite_movie_as.c | 19 ++++--- test/trace/Makefile.am | 18 +++++++ test/trace/clonesprite-events-5.swf |binary test/trace/clonesprite-events-5.swf.trace | 4 +
2008 Jan 02
0
3 commits - libswfdec/swfdec_movie.c test/trace
libswfdec/swfdec_movie.c | 36 ++++++++++++++++++++++++++++++--- test/trace/Makefile.am | 9 ++++++++ test/trace/movie-enumerate-5.swf |binary test/trace/movie-enumerate-5.swf.trace | 2 + test/trace/movie-enumerate-6.swf |binary test/trace/movie-enumerate-6.swf.trace | 2 + test/trace/movie-enumerate-7.swf |binary
2007 Aug 19
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c
libswfdec/swfdec_as_array.c | 9 ++--- libswfdec/swfdec_as_object.c | 62 ++++++++++++++++++---------------------- libswfdec/swfdec_as_object.h | 14 +++++---- libswfdec/swfdec_as_super.c | 2 - libswfdec/swfdec_as_with.c | 4 +- libswfdec/swfdec_movie.c | 4 +- libswfdec/swfdec_player.c | 2 - libswfdec/swfdec_sprite_movie.c | 2 -
2007 Nov 03
1
a couple of swfdec patches.
Missed you on #swfdec, so I'll throw you this mail instead. Please be critical to these patches as it's way to late for me to write code and I haven't really double-checked they are correct as my brain went to sleep hours ago, but they seem to work in my minimal testing. ;) Ran into this use-after-free... http://www.fatal.se/tmp/swf/swfdec-use-after-free.diff (attached). While
2007 Aug 02
0
15 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_file_loader.c libswfdec/swfdec_file_loader.h
...ie = swfdec_movie_new (player, depth - 16384, NULL, NULL, name); movie->name = SWFDEC_AS_STR_EMPTY; - swfdec_swf_instance_new (SWFDEC_SPRITE_MOVIE (movie), loader); + swfdec_swf_instance_new (SWFDEC_SPRITE_MOVIE (movie), loader, variables); g_object_unref (loader); - if (variables) - swfdec_movie_set_variables (movie, variables); return movie; } diff --git a/libswfdec/swfdec_swf_instance.c b/libswfdec/swfdec_swf_instance.c index 7f82971..df6b252 100644 --- a/libswfdec/swfdec_swf_instance.c +++ b/libswfdec/swfdec_swf_instance.c @@ -72,6 +72,23 @@ swfdec_swf_instance_loader_target_image } static...
2007 Jul 03
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_math.c libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/trace
...ring btw: if someone has better names than get_string/give_string, tell me. I couldn't come up with any. diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index c0bf0df..dff211f 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -466,8 +466,7 @@ swfdec_movie_set_variables (SwfdecMovie g_free (value); break; } - asname = swfdec_as_context_get_string (as->context, name); - g_free (name); + asname = swfdec_as_context_give_string (as->context, name); SWFDEC_AS_VALUE_SET_STRING (&val, swfdec_as_context_get_string (as->contex...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
libswfdec/swfdec_as_strings.c | 4 libswfdec/swfdec_movie.c | 76 +++++ libswfdec/swfdec_movie.h | 19 + libswfdec/swfdec_text_field.c | 23 + libswfdec/swfdec_text_field.h | 2 libswfdec/swfdec_text_field_movie.c | 420 ++++++++++++++++++++++++++++--- libswfdec/swfdec_text_field_movie.h | 5
2007 Aug 07
0
5 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_keys.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c player/swfdebug.c player/swfdec_debug_movies.c player/swfdec_debug_movies.h test/trace
libswfdec/swfdec_as_context.c | 14 +- libswfdec/swfdec_keys.h | 2 libswfdec/swfdec_movie.c | 70 ++++++++++- libswfdec/swfdec_movie.h | 2 libswfdec/swfdec_sprite_movie_as.c | 12 -- player/swfdebug.c | 6 - player/swfdec_debug_movies.c | 221 +++++++++++++++++++------------------ player/swfdec_debug_movies.h |
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
..._open (SwfdecLoaderTarget *target, SwfdecLoader *loader) +{ + SwfdecResource *instance = SWFDEC_RESOURCE (target); + const char *query; + + query = swfdec_url_get_query (swfdec_loader_get_url (loader)); + if (query) { + SWFDEC_INFO ("set url query movie variables: %s", query); + swfdec_movie_set_variables (SWFDEC_MOVIE (instance->movie), query); + } + if (instance->variables) { + SWFDEC_INFO ("set manual movie variables: %s", instance->variables); + swfdec_movie_set_variables (SWFDEC_MOVIE (instance->movie), instance->variables); + } +} + +static void +swfdec_resour...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...+ + swfdec_resource_emit_signal (resource, SWFDEC_AS_STR_onLoadError, FALSE, vals, 2); } static void @@ -144,7 +173,8 @@ swfdec_resource_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *lo SWFDEC_INFO ("set manual movie variables: %s", instance->variables); swfdec_movie_set_variables (SWFDEC_MOVIE (instance->movie), instance->variables); } - swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadStart, NULL, 0); + swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadStart, FALSE, NULL, 0); + instance->state = SWFDEC_RESOURCE_OPENED; } static void @@...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...otte at gnome.org> Date: Wed Aug 22 21:09:35 2007 +0200 add swfdec_movie_rect_global_to_local/local_to_global() diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 96a7af1..eb1e2e5 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -476,7 +476,7 @@ swfdec_movie_set_variables (SwfdecMovie /* NB: coordinates are in movie's coordiante system. Use swfdec_movie_get_mouse * if you have global coordinates */ -static gboolean +gboolean swfdec_movie_mouse_in (SwfdecMovie *movie, double x, double y) { SwfdecMovieClass *klass; @@ -490,14 +490,42 @@ swfdec_movie_mou...
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
...t_name (condition); if (name == NULL || - !swfdec_scriptable_can_execute (SWFDEC_SCRIPTABLE (movie), name)) + !swfdec_as_object_has_function (SWFDEC_AS_OBJECT (movie), name)) return FALSE; } @@ -405,6 +453,52 @@ swfdec_movie_queue_script (SwfdecMovie * return TRUE; } +/** + * swfdec_movie_set_variables: + * @script: a #SwfdecMovie + * @variables: variables to set on @movie in application-x-www-form-urlencoded + * format + * + * Verifies @variables to be encoded correctly and sets them as string + * properties on the given @movie. + **/ +void +swfdec_movie_set_variables (SwfdecMovie...
2007 Jun 05
0
Branch 'as' - 8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_scope.h
...c/swfdec_player.c @@ -968,7 +968,6 @@ swfdec_player_add_level_from_loader (Swf swfdec_player_remove_level (player, depth); movie = swfdec_movie_new_for_player (player, depth); root = SWFDEC_ROOT_MOVIE (movie); - root->player = player; root->loader = loader; if (variables) swfdec_movie_set_variables (movie, variables); diff --git a/libswfdec/swfdec_root_movie.c b/libswfdec/swfdec_root_movie.c index 8b22055..1fcba46 100644 --- a/libswfdec/swfdec_root_movie.c +++ b/libswfdec/swfdec_root_movie.c @@ -47,7 +47,7 @@ G_DEFINE_TYPE_WITH_CODE (SwfdecRootMovie static SwfdecPlayer * swfdec_root_movie_l...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...} + static void swfdec_resource_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *loader) { @@ -119,6 +147,7 @@ swfdec_resource_loader_target_open (SwfdecLoaderTarget *target, SwfdecLoader *lo SWFDEC_INFO ("set manual movie variables: %s", instance->variables); swfdec_movie_set_variables (SWFDEC_MOVIE (instance->movie), instance->variables); } + swfdec_resource_emit_signal (instance, SWFDEC_AS_STR_onLoadStart, NULL, 0); } static void @@ -126,6 +155,7 @@ swfdec_resource_loader_target_parse (SwfdecLoaderTarget *target, SwfdecLoader *l { SwfdecResource *instance = SW...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...; + swfdec_swf_instance_new (SWFDEC_SPRITE_MOVIE (movie), loader, NULL); + g_object_unref (loader); } char * diff --git a/libswfdec/swfdec_movie.h b/libswfdec/swfdec_movie.h index 3b41d2f..7848d52 100644 --- a/libswfdec/swfdec_movie.h +++ b/libswfdec/swfdec_movie.h @@ -236,14 +236,12 @@ void swfdec_movie_set_variables (SwfdecMovie * movie, const char * variables); void swfdec_movie_load_variables (SwfdecMovie * movie, const char * url, - const char * target, - SwfdecLoaderRequest request); + SwfdecLoaderRequest request, + SwfdecBuffer * data); void swfdec_movie_l...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
libswfdec-gtk/swfdec_gtk_loader.c | 57 ++++-- libswfdec/Makefile.am | 8 libswfdec/swfdec_as_array.c | 9 - libswfdec/swfdec_as_context.c | 42 ++-- libswfdec/swfdec_as_frame.c | 14 - libswfdec/swfdec_as_frame_internal.h | 3 libswfdec/swfdec_as_interpret.c | 44 +++-
2007 Nov 10
0
10 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie_clip_loader.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c
libswfdec/swfdec_as_interpret.c | 40 - libswfdec/swfdec_as_types.c | 11 libswfdec/swfdec_initialize.as | 6 libswfdec/swfdec_initialize.h | 1006 ++++++++++++++-------------- libswfdec/swfdec_movie.c | 33 libswfdec/swfdec_movie.h | 1 libswfdec/swfdec_movie_clip_loader.c | 3