[Swfdec-commits] src/plugin.c

Benjamin Otte company at kemper.freedesktop.org
Tue Feb 5 11:33:02 PST 2008


 src/plugin.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 49161e94933ae3edbd88597e2abe93698f00f4e0
Author: Benjamin Otte <otte at gnome.org>
Date:   Tue Feb 5 14:01:32 2008 +0100

    fix for new buffer API

diff --git a/src/plugin.c b/src/plugin.c
index 9bf3240..3b3b70b 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -321,9 +321,7 @@ plugin_write (NPP instance, NPStream *stream, int32 offset, int32 len, void *buf
   if (!SWFMOZ_IS_LOADER (stream->pdata))
     return -1;
 
-  new = swfdec_buffer_new ();
-  new->length = len;
-  new->data = g_memdup (buffer, len);
+  new = swfdec_buffer_new_for_data (g_memdup (buffer, len), len);
   swfmoz_loader_ensure_open (stream->pdata);
   swfdec_stream_push (stream->pdata, new);
   return len;


More information about the Swfdec-commits mailing list