[Swfdec] libswfdec/swfdec_player.c

Pekka Lampila
Tue, 04 Sep 2007 21:44:34 -0000

libswfdec/swfdec_player.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
diff-tree d16a6e3da03121a68bebcddb33473fda33bdf3db (from
a84130c80ddc1efbce631010e77e2b1239d967b0)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date:   Wed Sep 5 00:38:24 2007 +0300

    Fix assert on flash versions earlier than 5 caused by XML init code

diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index ff8fc1e..0a55a7d 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/swfdec_player.c
@@ -1617,9 +1617,10 @@ swfdec_player_initialize (SwfdecPlayer *
       g_assert (script);
       swfdec_as_object_run (context->global, script);
       swfdec_script_unref (script);
+
+      swfdec_xml_node_init_native (player, version);
+      swfdec_xml_init_native (player, version);
     }
-    swfdec_xml_node_init_native (player, version);
-    swfdec_xml_init_native (player, version);
     if (context->state == SWFDEC_AS_CONTEXT_NEW) {
       context->state = SWFDEC_AS_CONTEXT_RUNNING;
       swfdec_as_object_set_constructor (player->roots->data,
player->MovieClip);