[Swfdec] libswfdec/swfdec_asbroadcaster.c
Benjamin Otte
company at kemper.freedesktop.org
Fri Jul 27 10:38:10 PDT 2007
libswfdec/swfdec_asbroadcaster.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
New commits:
diff-tree a3ece6519ae6a1c481845d7a6a383b87aa0cc30d (from b3ab4943fa2579832e3cf9e346caab16feab4b46)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jul 27 19:37:28 2007 +0200
so the _listeners don't have to be an array - we just need a length property
diff --git a/libswfdec/swfdec_asbroadcaster.c b/libswfdec/swfdec_asbroadcaster.c
index 1e69533..396ac81 100644
--- a/libswfdec/swfdec_asbroadcaster.c
+++ b/libswfdec/swfdec_asbroadcaster.c
@@ -21,7 +21,6 @@
#include "config.h"
#endif
-#include "swfdec_as_array.h"
#include "swfdec_as_object.h"
#include "swfdec_as_strings.h"
#include "swfdec_debug.h"
@@ -47,10 +46,10 @@ broadcastMessage (SwfdecAsContext *cx, S
argc--;
swfdec_as_object_get_variable (object, SWFDEC_AS_STR__listeners, &val);
- if (!SWFDEC_AS_VALUE_IS_OBJECT (&val) ||
- !SWFDEC_IS_AS_ARRAY (listeners = SWFDEC_AS_VALUE_GET_OBJECT (&val)))
+ if (!SWFDEC_AS_VALUE_IS_OBJECT (&val))
return;
+ listeners = SWFDEC_AS_VALUE_GET_OBJECT (&val);
swfdec_as_object_get_variable (listeners, SWFDEC_AS_STR_length, &val);
length = swfdec_as_value_to_integer (cx, &val);
More information about the Swfdec
mailing list