From 782965be9f6442155a3754def8dc05d8f4db0394 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 7 Aug 2009 14:41:31 +0200 Subject: gmedec: Use GstAdapter instead of many buffer joins This reduces the number of reallocations and memcpys drastically. Also free the input data as soon as it's complete and passed to GME as it's not needed anymore. --- ext/gme/gstgme.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/gme/gstgme.h') diff --git a/ext/gme/gstgme.h b/ext/gme/gstgme.h index f1ba39d9..5fe969d3 100644 --- a/ext/gme/gstgme.h +++ b/ext/gme/gstgme.h @@ -22,6 +22,7 @@ #define __GST_GME_DEC_H__ #include +#include #include @@ -48,7 +49,7 @@ struct _GstGmeDec GstPad *sinkpad; GstPad *srcpad; - GstBuffer *buf; + GstAdapter *adapter; Music_Emu *player; gboolean initialized; gboolean seeking; -- cgit v1.2.1