[Swfdec] small bug in swfdec_mouse_as.c

Nguyen Thai Ngoc Duy pclouds at gmail.com
Sat Jun 2 16:09:43 PDT 2007


Hi,

I found a small bug there. BTW which way is expected to send patches?
Attach a couple of git-format-patch(ed) patches in email, use
git-send-email or push to a git repository and notify the list?

Cheers,

diff --git a/libswfdec/swfdec_mouse_as.c b/libswfdec/swfdec_mouse_as.c
index d4d53d9..9483bbf 100644
--- a/libswfdec/swfdec_mouse_as.c
+++ b/libswfdec/swfdec_mouse_as.c
@@ -31,7 +31,7 @@ swfdec_mouse_addListener (SwfdecAsObject *object,
guint argc, SwfdecAsValue *arg
 {
   SwfdecPlayer *player = SWFDEC_PLAYER (object->context);

-  if (!SWFDEC_IS_AS_OBJECT (&argv[0]))
+  if (!SWFDEC_AS_VALUE_IS_OBJECT (&argv[0]))
     return;
   swfdec_listener_add (player->mouse_listener,
SWFDEC_AS_VALUE_GET_OBJECT (&argv[0]));
 }
-- 
Duy


More information about the Swfdec mailing list