[Swfdec] 2 commits - libswfdec/swfdec_player.c
libswfdec/swfdec_sprite.c
Benjamin Otte
company at kemper.freedesktop.org
Wed Mar 14 16:05:03 PDT 2007
libswfdec/swfdec_player.c | 2 +-
libswfdec/swfdec_sprite.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
diff-tree 67b44670242272bce0eb891db7ffbcbaa3d1b428 (from 850865a8684644564b06aaa35b836b98a6446b9c)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Mar 14 23:06:31 2007 +0100
put debug message in front
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index adc8584..8628b05 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -206,8 +206,8 @@ swfdec_player_add_action (SwfdecPlayer *
g_return_if_fail (object != NULL);
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);
+ action = swfdec_ring_buffer_push (player->actions);
if (action == NULL) {
/* FIXME: limit number of actions to not get inf loops due to scripts? */
swfdec_ring_buffer_set_size (player->actions,
diff-tree 850865a8684644564b06aaa35b836b98a6446b9c (from dedf24e3a36c463b0fa40d83e5b80ff36024baa3)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Mar 14 23:06:08 2007 +0100
parse KeyPress events correctly
diff --git a/libswfdec/swfdec_sprite.c b/libswfdec/swfdec_sprite.c
index 84e6973..66b4141 100644
--- a/libswfdec/swfdec_sprite.c
+++ b/libswfdec/swfdec_sprite.c
@@ -424,7 +424,7 @@ swfdec_spriteseg_place_object_2 (SwfdecS
break;
swfdec_bits_init (&action_bits, buffer);
if (event_flags & SWFDEC_EVENT_KEY_PRESS)
- key_code = swfdec_bits_get_u8 (bits);
+ key_code = swfdec_bits_get_u8 (&action_bits);
else
key_code = 0;
More information about the Swfdec
mailing list