[Swfdec] libswfdec/swfdec_player.c

Benjamin Otte company at kemper.freedesktop.org
Sun Oct 14 08:04:29 PDT 2007


 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
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1023,6 +1023,7 @@ swfdec_player_do_handle_key (SwfdecPlayer *player, guint keycode, guint characte
 {
   g_assert (keycode < 256);
 
+  swfdec_player_lock (player);
   /* set the correct variables */
   player->last_keycode = keycode;
   player->last_character = character;
@@ -1032,6 +1033,8 @@ swfdec_player_do_handle_key (SwfdecPlayer *player, guint keycode, guint characte
     player->key_pressed[keycode / 8] &= ~(1 << keycode % 8);
   }
   swfdec_player_broadcast (player, SWFDEC_AS_STR_Key, down ? SWFDEC_AS_STR_onKeyDown : SWFDEC_AS_STR_onKeyUp);
+  swfdec_player_perform_actions (player);
+  swfdec_player_unlock (player);
 
   return TRUE;
 }


More information about the Swfdec mailing list