[Swfdec-commits] 2 commits - libswfdec/swfdec_sandbox.c libswfdec/swfdec_tag.c

Benjamin Otte company at kemper.freedesktop.org
Tue Jan 22 01:56:10 PST 2008


 libswfdec/swfdec_sandbox.c |    2 +-
 libswfdec/swfdec_tag.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit abf9c896861b9e03ac68adcdc28a7d563f4b99c5
Author: Benjamin Otte <otte at gnome.org>
Date:   Tue Jan 22 10:55:59 2008 +0100

    seems DefineVideoStream can appear inside DefineSprite
    
    It does on Google Video at least. This commit makes Google Video work.

diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index f08db53..133f8b2 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -565,7 +565,7 @@ static struct tag_func_struct tag_funcs[] = {
   [SWFDEC_TAG_IMPORTASSETS] = {"ImportAssets", NULL, 0},
   [SWFDEC_TAG_ENABLEDEBUGGER] = {"EnableDebugger", NULL, 0},
   [SWFDEC_TAG_DOINITACTION] = {"DoInitAction", tag_func_enqueue, SWFDEC_TAG_DEFINE_SPRITE },
-  [SWFDEC_TAG_DEFINEVIDEOSTREAM] = {"DefineVideoStream", tag_func_define_video, 0},
+  [SWFDEC_TAG_DEFINEVIDEOSTREAM] = {"DefineVideoStream", tag_func_define_video, SWFDEC_TAG_DEFINE_SPRITE },
   [SWFDEC_TAG_VIDEOFRAME] = {"VideoFrame", tag_func_video_frame, SWFDEC_TAG_DEFINE_SPRITE },
   [SWFDEC_TAG_DEFINEFONTINFO2] = {"DefineFontInfo2", tag_func_define_font_info, 0},
   [SWFDEC_TAG_DEBUGID] = {"DebugID", NULL, 0},
commit 7bd9ecbfd38a53542b252ec70127bc97c4310fbd
Author: Benjamin Otte <otte at gnome.org>
Date:   Tue Jan 22 10:55:25 2008 +0100

    append new sandboxes
    
    Appending seems to be what the official Flash player does all the time, so
    let's do it here, too.

diff --git a/libswfdec/swfdec_sandbox.c b/libswfdec/swfdec_sandbox.c
index e3c967f..9832f63 100644
--- a/libswfdec/swfdec_sandbox.c
+++ b/libswfdec/swfdec_sandbox.c
@@ -213,7 +213,7 @@ swfdec_sandbox_get_for_url (SwfdecPlayer *player, const SwfdecURL *url,
     swfdec_as_object_add (SWFDEC_AS_OBJECT (sandbox), context, size);
     sandbox->url = real;
     sandbox->as_version = as_version;
-    priv->sandboxes = g_slist_prepend (priv->sandboxes, sandbox);
+    priv->sandboxes = g_slist_append (priv->sandboxes, sandbox);
   
     if (!swfdec_sandbox_set_allow_network (sandbox, allow_network))
       return NULL;


More information about the Swfdec-commits mailing list