[Swfdec] 2 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.h

Benjamin Otte company at kemper.freedesktop.org
Wed Mar 7 12:42:09 PST 2007


 libswfdec/swfdec_js_movie.c   |    3 +++
 libswfdec/swfdec_root_movie.h |    4 ++++
 2 files changed, 7 insertions(+)

New commits:
diff-tree bb4cc0da47ef8cc6978c1b51e55a0da1339ed5b9 (from 637a8dcb5663fc692c8b2e222e3555609759f7ff)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Mar 7 21:41:23 2007 +0100

    warn about not handling initObject

diff --git a/libswfdec/swfdec_js_movie.c b/libswfdec/swfdec_js_movie.c
index 3d04d92..200f706 100644
--- a/libswfdec/swfdec_js_movie.c
+++ b/libswfdec/swfdec_js_movie.c
@@ -395,6 +395,9 @@ swfdec_js_movie_attachMovie (JSContext *
 
   export = swfdec_js_to_string (cx, argv[0]);
   name = swfdec_js_to_string (cx, argv[1]);
+  if (argc > 3) {
+    SWFDEC_ERROR ("attachMovie's initObject isn't implemented");
+  }
   if (export == NULL || name == NULL)
     return JS_FALSE;
   sprite = swfdec_root_movie_get_export (SWFDEC_ROOT_MOVIE (movie->root), export);
diff-tree 637a8dcb5663fc692c8b2e222e3555609759f7ff (from 079beedc71d1fc60cf29451ba622c1d576b6a019)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Mar 7 21:41:03 2007 +0100

    whoops, forgot to update this file

diff --git a/libswfdec/swfdec_root_movie.h b/libswfdec/swfdec_root_movie.h
index f1ae02b..f5a57d6 100644
--- a/libswfdec/swfdec_root_movie.h
+++ b/libswfdec/swfdec_root_movie.h
@@ -45,6 +45,7 @@ struct _SwfdecRootMovie
   guint			unnamed_count;	/* variable used for naming unnamed movies */
 
   guint			root_actions_performed;	/* root actions been performed in all frames < this*/
+  GHashTable *		exports;	/* string->SwfdecCharacter mapping of exported characters */
 };
 
 struct _SwfdecRootMovieClass
@@ -61,5 +62,8 @@ void		swfdec_root_movie_load			(SwfdecRo
 void		swfdec_root_movie_perform_root_actions	(SwfdecRootMovie *	root,
 							 guint			frame);
 
+gpointer	swfdec_root_movie_get_export		(SwfdecRootMovie *	root,
+							 const char *		name);
+
 G_END_DECLS
 #endif


More information about the Swfdec mailing list