search for: swfdec_video_movie_init_context

Displaying 12 results from an estimated 12 matches for "swfdec_video_movie_init_context".

2007 Jun 27
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_video.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_video_movie_as.c libswfdec/swfdec_video_movie.c
...id swfdec_movie_color_init_cont extern void swfdec_net_connection_init_context (SwfdecPlayer *player, guint version); extern void swfdec_net_stream_init_context (SwfdecPlayer *player, guint version); extern void swfdec_sprite_movie_init_context (SwfdecPlayer *player, guint version); +extern void swfdec_video_movie_init_context (SwfdecPlayer *player, guint version); extern void swfdec_xml_init_context (SwfdecPlayer *player, guint version); /** * swfdec_player_initialize: @@ -1102,6 +1104,7 @@ swfdec_player_initialize (SwfdecPlayer * swfdec_player_init_global (player, version); swfdec_mouse_init_context (play...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...swfdec_as_context_startup (context, version); - /* reset state for initialization */ - /* FIXME: have a better way to do this */ - if (context->state == SWFDEC_AS_CONTEXT_RUNNING) { - context->state = SWFDEC_AS_CONTEXT_NEW; - swfdec_sprite_movie_init_context (player, version); - swfdec_video_movie_init_context (player, version); - swfdec_net_connection_init_context (player, version); - swfdec_net_stream_init_context (player, version); - - swfdec_as_context_run_init_script (context, swfdec_initialize, - sizeof (swfdec_initialize), 8); - - if (context->state == SWFDEC_AS_CONTEXT_NEW) { -...
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
...LSE; ++ *object = SWFDEC_AS_OBJECT (movie); ++ return TRUE; } static void diff --cc libswfdec/swfdec_player.c index 1196519,ac38011..e473fed @@@ -1613,16 -1608,17 +1613,12 @@@ swfdec_player_init_global (player, version); swfdec_sprite_movie_init_context (player, version); swfdec_video_movie_init_context (player, version); - swfdec_movie_color_init_context (player, version); swfdec_net_connection_init_context (player, version); swfdec_net_stream_init_context (player, version); - if (version > 4) { - SwfdecBits bits; - SwfdecScript *script; - swfdec_bits_init...
2007 Sep 04
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_video_movie_as.c test/trace
...2007 +0300 Don't add attachVideo and clear to the Video object in version 5 diff --git a/libswfdec/swfdec_video_movie_as.c b/libswfdec/swfdec_video_movie_as.c index bde3a24..2edf5b4 100644 --- a/libswfdec/swfdec_video_movie_as.c +++ b/libswfdec/swfdec_video_movie_as.c @@ -74,10 +74,12 @@ swfdec_video_movie_init_context (SwfdecP swfdec_as_object_set_variable_and_flags (video, SWFDEC_AS_STR_prototype, &val, SWFDEC_AS_VARIABLE_HIDDEN | SWFDEC_AS_VARIABLE_PERMANENT); /* set the right properties on the Video.prototype object */ - swfdec_as_object_add_function (proto, SWFDEC_AS_STR_attachVideo, SWFDEC...
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
...ersion); +void swfdec_net_connection_init_context (SwfdecPlayer * player, + guint version); +void swfdec_net_stream_init_context (SwfdecPlayer * player, + guint version); +void swfdec_sprite_movie_init_context (SwfdecPlayer * player, + guint version); +void swfdec_video_movie_init_context (SwfdecPlayer * player, + guint version); +void swfdec_xml_init_context (SwfdecPlayer * player, + guint version); + +G_END_DECLS +#endif diff --git a/libswfdec/swfdec_interval.c b/libswfdec/swfdec_interval.c index ab79eb8..f8fcc85 100644 --- a/libswfdec/swfdec_interval.c...
2007 Aug 22
0
5 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_script_function.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...STR_attachMovie, SWFDEC_TYPE_SPRITE_MOVIE, swfdec_sprite_movie_attachMovie, 3); diff --git a/libswfdec/swfdec_video_movie_as.c b/libswfdec/swfdec_video_movie_as.c index 79574e2..bde3a24 100644 --- a/libswfdec/swfdec_video_movie_as.c +++ b/libswfdec/swfdec_video_movie_as.c @@ -71,15 +71,18 @@ swfdec_video_movie_init_context (SwfdecP return; /* set the right properties on the Video object */ SWFDEC_AS_VALUE_SET_OBJECT (&val, proto); - swfdec_as_object_set_variable (video, SWFDEC_AS_STR_prototype, &val); + swfdec_as_object_set_variable_and_flags (video, SWFDEC_AS_STR_prototype, &val, + SWFD...
2007 Jul 26
0
17 commits - doc/swfdec-sections.txt libswfdec/compiler.c libswfdec/.gitignore libswfdec/Makefile.am libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...layer_initialize (SwfdecPlayer * if (context->state == SWFDEC_AS_CONTEXT_RUNNING) { context->state = SWFDEC_AS_CONTEXT_NEW; swfdec_player_init_global (player, version); - swfdec_mouse_init_context (player, version); swfdec_sprite_movie_init_context (player, version); swfdec_video_movie_init_context (player, version); swfdec_movie_color_init_context (player, version); diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_internal.h index daa4d31..9c3ef99 100644 --- a/libswfdec/swfdec_player_internal.h +++ b/libswfdec/swfdec_player_internal.h @@ -75,8 +75,6 @@ struct _S...
2007 Jun 27
0
Branch 'as' - 16 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_script_function.c
...ConvertStub, swfdec_js_video_finalize, - JSCLASS_NO_OPTIONAL_MEMBERS -}; - -static JSBool -swfdec_js_video_new (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) -{ - return JS_TRUE; + swfdec_video_movie_clear (video); } void -swfdec_js_add_video (SwfdecPlayer *player) +swfdec_video_movie_init_context (SwfdecPlayer *player, guint version) { - JS_InitClass (player->jscx, player->jsobj, NULL, - &video_class, swfdec_js_video_new, 0, NULL, video_methods, - NULL, NULL); + SwfdecAsContext *context; + SwfdecAsObject *video, *proto; + SwfdecAsValue val; + + g_return_if_fail (SW...
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
....h" #include "swfdec_internal.h" #include "swfdec_net_stream.h" #include "swfdec_player_internal.h" -#include "swfdec_as_internal.h" +#include "swfdec_sandbox.h" SWFDEC_AS_NATIVE (667, 1, swfdec_video_attach_video) void @@ -74,7 +75,7 @@ swfdec_video_movie_init_context (SwfdecPlayer *player) SWFDEC_AS_STR_Video, 0, NULL, 0)); if (video == NULL) return; - player->priv->Video = video; + SWFDEC_SANDBOX (context->global)->Video = video; proto = swfdec_as_object_new_empty (context); if (proto == NULL) return; commit 16378e17f47f...
2007 Dec 13
0
libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_date.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_interval.c libswfdec/swfdec_key_as.c libswfdec/swfdec_mouse_as.c libswfdec/swfdec_movie.c
...set_constructor (SWFDEC_AS_OBJECT (movie), player->priv->Video); } static void diff --git a/libswfdec/swfdec_video_movie_as.c b/libswfdec/swfdec_video_movie_as.c index 0ff1506..833c634 100644 --- a/libswfdec/swfdec_video_movie_as.c +++ b/libswfdec/swfdec_video_movie_as.c @@ -74,7 +74,7 @@ swfdec_video_movie_init_context (SwfdecPlayer *player, guint version) SWFDEC_AS_STR_Video, 0, NULL, 0)); if (video == NULL) return; - player->Video = video; + player->priv->Video = video; proto = swfdec_as_object_new_empty (context); if (proto == NULL) return; diff --git a/test/dump.c b/test/d...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...pe); + swfdec_as_object_set_variable (proto, SWFDEC_AS_STR___proto__, &val); } diff --git a/libswfdec/swfdec_video_movie_as.c b/libswfdec/swfdec_video_movie_as.c index bebcd58..79574e2 100644 --- a/libswfdec/swfdec_video_movie_as.c +++ b/libswfdec/swfdec_video_movie_as.c @@ -66,16 +66,20 @@ swfdec_video_movie_init_context (SwfdecP if (video == NULL) return; player->Video = video; - proto = swfdec_as_object_new (context); + proto = swfdec_as_object_new_empty (context); + if (proto == NULL) + return; /* set the right properties on the Video object */ SWFDEC_AS_VALUE_SET_OBJECT (&val, prot...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...decAsObject *object, guint argc, + SwfdecAsValue *argv, SwfdecAsValue *rval) { - SwfdecVideoMovie *video = SWFDEC_VIDEO_MOVIE (obj); + SwfdecVideoMovie *video; + + SWFDEC_AS_CHECK (SWFDEC_TYPE_VIDEO_MOVIE, &video, ""); swfdec_video_movie_clear (video); } @@ -76,7 +85,7 @@ swfdec_video_movie_init_context (SwfdecPlayer *player, guint version) /* set the right properties on the Video.prototype object */ if (version >= 6) { swfdec_as_object_add_function (proto, SWFDEC_AS_STR_attachVideo, - SWFDEC_TYPE_VIDEO_MOVIE, swfdec_video_attach_video, 1); + SWFDEC_TYPE_VIDEO_MOVIE, swfdec_video_att...