search for: swfdec_ring_buffer_push

Displaying 8 results from an estimated 8 matches for "swfdec_ring_buffer_push".

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 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
...layer)) g_object_notify (G_OBJECT (player), "next-event"); } @@ -364,18 +370,19 @@ swfdec_player_compress_actions (SwfdecRingBuffer *buffer) static void swfdec_player_do_add_action (SwfdecPlayer *player, guint importance, SwfdecPlayerAction *act) { - SwfdecPlayerAction *action = swfdec_ring_buffer_push (player->actions[importance]); + SwfdecPlayerPrivate *priv = player->priv; + SwfdecPlayerAction *action = swfdec_ring_buffer_push (priv->actions[importance]); if (action == NULL) { /* try to get rid of freed actions */ - swfdec_player_compress_actions (player->actions[impor...
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
...); - g_return_if_fail (object != NULL); - g_return_if_fail (action_func != NULL); + g_return_if_fail (SWFDEC_IS_MOVIE (movie)); + g_return_if_fail (importance < SWFDEC_PLAYER_N_ACTION_QUEUES); - SWFDEC_LOG ("adding action %p %p %p", object, action_func, action_data); - action = swfdec_ring_buffer_push (player->actions); + SWFDEC_LOG ("adding action %s %u", movie->name, type); + action = swfdec_ring_buffer_push (player->actions[importance]); if (action == NULL) { /* FIXME: limit number of actions to not get inf loops due to scripts? */ - swfdec_ring_buffer_set_size...
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
...dds some debugging. diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 2f7deef..76c93e7 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -207,6 +207,7 @@ swfdec_player_add_action (SwfdecPlayer * g_return_if_fail (action_func != NULL); action = swfdec_ring_buffer_push (player->actions); + SWFDEC_LOG ("adding action %p %p %p", object, action_func, action_data); if (action == NULL) { /* FIXME: limit number of actions to not get inf loops due to scripts? */ swfdec_ring_buffer_set_size (player->actions, @@ -239,8 +240,11 @@ swfdec_playe...
2007 Nov 12
0
3 commits - libswfdec/swfdec_player.c test/trace
...er diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index dc44de2..57f0de4 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -367,16 +367,12 @@ swfdec_player_do_add_action (SwfdecPlayer *player, guint importance, SwfdecPlaye SwfdecPlayerAction *action = swfdec_ring_buffer_push (player->actions[importance]); if (action == NULL) { /* try to get rid of freed actions */ - if (swfdec_ring_buffer_get_size (player->actions[importance]) >= 256) { - swfdec_player_compress_actions (player->actions[importance]); - action = swfdec_ring_buffer_push (p...
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
.../paste error: use external_actions instead of actions ringbuffer diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c index 8b497da..c7a67c9 100644 --- a/libswfdec/swfdec_player.c +++ b/libswfdec/swfdec_player.c @@ -361,9 +361,9 @@ swfdec_player_add_external_action (Swfde action = swfdec_ring_buffer_push (player->external_actions); if (action == NULL) { /* FIXME: limit number of actions to not get inf loops due to scripts? */ - swfdec_ring_buffer_set_size (player->actions, - swfdec_ring_buffer_get_size (player->actions) + 16); - action = swfdec_ring_buffer_push (player->ac...
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
...mportance]) >= 256) { swfdec_player_compress_actions (player->actions[importance]); - g_print ("%u/%u elements\n", - swfdec_ring_buffer_get_n_elements (player->actions[importance]), - swfdec_ring_buffer_get_size (player->actions[importance])); action = swfdec_ring_buffer_push (player->actions[importance]); - g_print ("%u/%u elements: action %p\n", - swfdec_ring_buffer_get_n_elements (player->actions[importance]), - swfdec_ring_buffer_get_size (player->actions[importance]), action); /* if it doesn't get smaller, bail */ if...
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
...c, gpointer action_data) +{ + SwfdecPlayerAction *action; + + g_return_if_fail (SWFDEC_IS_PLAYER (player)); + g_return_if_fail (object != NULL); + g_return_if_fail (action_func != NULL); + + SWFDEC_LOG ("adding external action %p %p %p", object, action_func, action_data); + action = swfdec_ring_buffer_push (player->external_actions); + if (action == NULL) { + /* FIXME: limit number of actions to not get inf loops due to scripts? */ + swfdec_ring_buffer_set_size (player->actions, + swfdec_ring_buffer_get_size (player->actions) + 16); + action = swfdec_ring_buffer_push (player->ac...