Displaying 7 results from an estimated 7 matches for "swfdec_ring_buffer_get_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
...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_context_abort (SWFDEC_AS_CONTEXT (player),
+ "25...
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
...fdec/swfdec_player.c
index 15caea0..ef998f7 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -323,7 +323,7 @@ swfdec_player_perform_external_actions (
/* 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/sw...
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
...fdec_ring_buffer_get_n_elements (buffer); i++) {
action = swfdec_ring_buffer_peek_nth (buffer, i);
g_assert (action->movie != NULL);
@@ -371,13 +369,7 @@ swfdec_player_do_add_action (SwfdecPlayer *player, guint importance, SwfdecPlaye
/* try to get rid of freed actions */
if (swfdec_ring_buffer_get_size (player->actions[importance]) >= 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[importanc...
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
..._compress_actions (player->actions[importance]);
- action = swfdec_ring_buffer_push (player->actions[importance]);
+ swfdec_player_compress_actions (priv->actions[importance]);
+ action = swfdec_ring_buffer_push (priv->actions[importance]);
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],
- swfde...
2007 Nov 12
0
3 commits - libswfdec/swfdec_player.c test/trace
...+ 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 (player->actions[importance]);
- /* if it doesn't get smaller, bail */
- if (action == NULL) {
- swfdec_as_context_abort (SW...
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
...ec_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_buffer_push (player->external_actions);
g_asser...