diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-07 14:41:31 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-08-07 14:47:30 +0200 |
commit | 782965be9f6442155a3754def8dc05d8f4db0394 (patch) | |
tree | 09cd39e340088ec33e29073d8124f67dd1fb6cbc /ext/gme/gstgme.h | |
parent | 222322e7f372397c18a9bd092be1ba8581586799 (diff) | |
download | gst-plugins-bad-782965be9f6442155a3754def8dc05d8f4db0394.tar.gz gst-plugins-bad-782965be9f6442155a3754def8dc05d8f4db0394.tar.bz2 gst-plugins-bad-782965be9f6442155a3754def8dc05d8f4db0394.zip |
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.
Diffstat (limited to 'ext/gme/gstgme.h')
-rw-r--r-- | ext/gme/gstgme.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <gst/gst.h> +#include <gst/base/gstadapter.h> #include <gme/gme.h> @@ -48,7 +49,7 @@ struct _GstGmeDec GstPad *sinkpad; GstPad *srcpad; - GstBuffer *buf; + GstAdapter *adapter; Music_Emu *player; gboolean initialized; gboolean seeking; |