search for: swfdec_ring_buffer_set_size

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

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 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
...n = 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 (player->actions, - swfdec_ring_buffer_get_size (player->actions) + 16); - action = swfdec_ring_buffer_push (player->actions); + if (swfdec_ring_buffer_get_size (player->actions[importance]) >= 256) { + /* FIXME: try to remove empty entries first? */ + swfdec_as_conte...
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
...e]); if (action == NULL) { - if (swfdec_ring_buffer_get_size (player->actions[importance]) == 256) { + if (swfdec_ring_buffer_get_size (priv->actions[importance]) == 256) { SWFDEC_WARNING ("256 levels of recursion were exceeded in one action list."); } - swfdec_ring_buffer_set_size (player->actions[importance], - swfdec_ring_buffer_get_size (player->actions[importance]) + 16); - action = swfdec_ring_buffer_push (player->actions[importance]); + swfdec_ring_buffer_set_size (priv->actions[importance], + swfdec_ring_buffer_get_size (priv->actions[impo...
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
...-- 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->actions); + swfdec_ring_buffer_set_size (player->external_actions, + swfdec_ring_buffer_get_size (player->external_actions) + 16); + action = swfdec_ring_buff...
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
...* 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_player_remove_all_actions (Swfdec for (i = 0; i < swfdec_ring_buffer_get_n_elements (player->actions); i++) { action = swfdec_ring_buffer_peek_nth (player->actions, i); - if (action->object == object) + if (action->obje...
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
...ail (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->actions); + g_assert (action); + } + action->object = object; + action->func = action_func; + action->data = action_data; + if (!player->external_time...
2007 Nov 12
0
3 commits - libswfdec/swfdec_player.c test/trace
...action = swfdec_ring_buffer_push (player->actions[importance]); + if (action == NULL) { + if (swfdec_ring_buffer_get_size (player->actions[importance]) == 256) { + SWFDEC_WARNING ("256 levels of recursion were exceeded in one action list."); } - } else { swfdec_ring_buffer_set_size (player->actions[importance], swfdec_ring_buffer_get_size (player->actions[importance]) + 16); action = swfdec_ring_buffer_push (player->actions[importance]); commit 277b21a8b032fc14490b60ec699df470713d812e Author: Benjamin Otte <otte at gnome.org> Date: Mon Nov 12 23:20...
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
...size (player->actions[importance]), action); + /* if it doesn't get smaller, bail */ + if (action == NULL) { + swfdec_as_context_abort (SWFDEC_AS_CONTEXT (player), + "256 levels of recursion were exceeded in one action list."); + return; + } + } else { + swfdec_ring_buffer_set_size (player->actions[importance], + swfdec_ring_buffer_get_size (player->actions[importance]) + 16); + action = swfdec_ring_buffer_push (player->actions[importance]); + g_assert (action); + } + } + *action = *act; } /** @@ -373,42 +410,21 @@ void swfdec_player_add_action...