Displaying 12 results from an estimated 12 matches for "swfdec_ring_buffer_pop".
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
2007 Aug 02
0
2 commits - libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_stage_as.c
...wfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 78493bf..a8e648a 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -644,6 +644,9 @@ swfdec_player_dispose (GObject *object)
}
}
#endif
+ swfdec_player_remove_all_external_actions (player, player);
+ g_assert (swfdec_ring_buffer_pop (player->external_actions) == NULL);
+ swfdec_ring_buffer_free (player->external_actions);
g_assert (swfdec_ring_buffer_pop (player->actions) == NULL);
swfdec_ring_buffer_free (player->actions);
g_assert (player->movies == NULL);
@@ -1400,6 +1403,8 @@ swfdec_player_initiali...
2007 Aug 02
0
10 commits - libswfdec/compiler.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_player.c NEWS test/trace
...t *object)
/* we do this here so references to GC'd objects get freed */
G_OBJECT_CLASS (swfdec_player_parent_class)->dispose (object);
+ swfdec_player_remove_all_external_actions (player, player);
#ifndef G_DISABLE_ASSERT
{
SwfdecPlayerAction *action;
+ while ((action = swfdec_ring_buffer_pop (player->external_actions)) != NULL) {
+ g_assert (action->object == NULL); /* skip removed actions */
+ }
while ((action = swfdec_ring_buffer_pop (player->actions)) != NULL) {
g_assert (action->object == NULL); /* skip removed actions */
}
}
#endif
- swfde...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...ue);
- if (movie) {
- swfdec_movie_run_init (movie);
- return TRUE;
- }
- movie = g_queue_peek_head (player->construct_queue);
- if (movie) {
- swfdec_movie_run_construct (movie);
- return TRUE;
+ for (i = 0; i < SWFDEC_PLAYER_N_ACTION_QUEUES; i++) {
+ do {
+ action = swfdec_ring_buffer_pop (player->actions[i]);
+ if (action == NULL)
+ break;
+ } while (action->movie == NULL); /* skip removed actions */
+ if (action) {
+ if (action->script) {
+ swfdec_as_object_run_with_security (SWFDEC_AS_OBJECT (action->movie),
+ action->script, SWFDEC_SECURITY (act...
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
...g action %p %u",
@@ -457,11 +466,13 @@ static gboolean
swfdec_player_do_action (SwfdecPlayer *player)
{
SwfdecPlayerAction *action;
+ SwfdecPlayerPrivate *priv;
guint i;
+ priv = player->priv;
for (i = 0; i < SWFDEC_PLAYER_N_ACTION_QUEUES; i++) {
do {
- action = swfdec_ring_buffer_pop (player->actions[i]);
+ action = swfdec_ring_buffer_pop (priv->actions[i]);
if (action == NULL)
break;
} while (action->movie == NULL); /* skip removed actions */
@@ -483,18 +494,19 @@ static void
swfdec_player_perform_external_actions (SwfdecPlayer *player)
{
Swfde...
2007 Oct 14
3
libswfdec/swfdec_player.c
libswfdec/swfdec_player.c | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f82b818ab4cf2148fafbb9eec5a27622ccd680d7
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Oct 14 17:04:21 2007 +0200
lock the player when handling keys
ooooops
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 32254ab..4980b21 100644
---
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
...we need to query the number of current actions so newly added ones aren't
* executed in here */
- for (i = swfdec_ring_buffer_get_size (player->external_actions); i > 0; i--) {
+ for (i = swfdec_ring_buffer_get_n_elements (player->external_actions); i > 0; i--) {
action = swfdec_ring_buffer_pop (player->external_actions);
g_assert (action != NULL);
/* skip removed actions */
diff --git a/libswfdec/swfdec_swf_instance.c b/libswfdec/swfdec_swf_instance.c
index b45ef43..e79ed95 100644
--- a/libswfdec/swfdec_swf_instance.c
+++ b/libswfdec/swfdec_swf_instance.c
@@ -149,6 +149,7 @@...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...wfdecTimeout *timeout = walk->data;
- walk = walk->next;
- if (timeout->free) {
- /* all the others must remove themselves */
- timeout->free (timeout);
- swfdec_player_remove_timeout (player, timeout);
- }
- }
swfdec_js_finish_player (player);
g_assert (swfdec_ring_buffer_pop (player->actions) == NULL);
swfdec_ring_buffer_free (player->actions);
g_assert (player->movies == NULL);
g_assert (player->audio == NULL);
+ if (player->rate) {
+ swfdec_player_remove_timeout (player, &player->iterate_timeout);
+ }
g_assert (player->timeou...
2007 Feb 22
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_js.c libswfdec/swfdec_js_mouse.c libswfdec/swfdec_listener.c libswfdec/swfdec_listener.h libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...i++) {
action = swfdec_ring_buffer_peek_nth (player->actions, i);
- if (action->movie == movie)
- action->movie = NULL;
+ if (action->object == object)
+ action->object = NULL;
}
}
@@ -232,9 +252,9 @@ swfdec_player_do_action (SwfdecPlayer *p
action = swfdec_ring_buffer_pop (player->actions);
if (action == NULL)
return FALSE;
- } while (action->movie == NULL); /* skip removed actions */
+ } while (action->object == NULL); /* skip removed actions */
- action->func (action->movie, action->data);
+ action->func (action->object, a...
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
...r.c
@@ -344,7 +344,7 @@ swfdec_player_compress_actions (SwfdecRingBuffer *buffer)
SwfdecPlayerAction *action, tmp;
guint i = 0;
- for (i = swfdec_ring_buffer_get_n_elements (buffer) + 1; i > 0; i--) {
+ for (i = swfdec_ring_buffer_get_n_elements (buffer); i > 0; i--) {
action = swfdec_ring_buffer_pop (buffer);
g_assert (action);
if (action->movie == NULL)
commit 60b6471a70c2e0cf9bf9c872022b85544ffe9ed5
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Nov 12 17:24:17 2007 +0100
also copy matrix state when replacing movies
diff --git a/libswfdec/swfdec_resource.c b/l...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...x 6de320b..81d06fa 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -358,6 +358,7 @@ swfdec_player_dispose (GObject *object)
swfdec_js_finish_player (player);
+ swfdec_player_remove_all_actions (player, player); /* HACK to allow non-removable actions */
g_assert (swfdec_ring_buffer_pop (player->actions) == NULL);
swfdec_ring_buffer_free (player->actions);
g_assert (player->movies == NULL);
diff-tree f39596ffc3e8d4f72da538f822f174390bbdf751 (from b0cf46e2bf75776ea6c5729c6996d8924c13e126)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Mar 2 21:04:34 2007 +0...
2007 Mar 15
0
11 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_debugger.h libswfdec/swfdec_event.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...*movie;
+ movie = g_queue_peek_head (player->init_queue);
+ if (movie) {
+ swfdec_movie_run_init (movie);
+ return TRUE;
+ }
+ movie = g_queue_peek_head (player->construct_queue);
+ if (movie) {
+ swfdec_movie_run_construct (movie);
+ return TRUE;
+ }
do {
action = swfdec_ring_buffer_pop (player->actions);
if (action == NULL)
@@ -381,6 +392,10 @@ swfdec_player_dispose (GObject *object)
swfdec_player_remove_timeout (player, &player->iterate_timeout);
}
g_assert (player->timeouts == NULL);
+ g_assert (g_queue_is_empty (player->init_queue));
+ g_asser...
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
...data);
- swfdec_js_finish_player (player);
+ swfdec_listener_free (player->mouse_listener);
+ swfdec_listener_free (player->key_listener);
+ //swfdec_js_finish_player (player);
swfdec_player_remove_all_actions (player, player); /* HACK to allow non-removable actions */
g_assert (swfdec_ring_buffer_pop (player->actions) == NULL);
@@ -542,7 +530,7 @@ swfdec_player_do_mouse_move (SwfdecPlaye
for (walk = player->movies; walk; walk = walk->next) {
swfdec_movie_queue_script (walk->data, SWFDEC_EVENT_MOUSE_MOVE);
}
- swfdec_listener_execute (player->mouse_listener, "onMo...