summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/ivorbis/vorbisfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ivorbis/vorbisfile.c b/ext/ivorbis/vorbisfile.c
index e31739a6..627a1d67 100644
--- a/ext/ivorbis/vorbisfile.c
+++ b/ext/ivorbis/vorbisfile.c
@@ -580,6 +580,11 @@ gst_ivorbisfile_sink_activate (GstPad * sinkpad)
/* FIX ME */
/* ivorbisfile->vf.seekable = TRUE; */
ivorbisfile->vf.seekable = FALSE;
+ if (ivorbisfile->adapter) {
+ gst_adapter_clear (ivorbisfile->adapter);
+ g_object_unref (ivorbisfile->adapter);
+ ivorbisfile->adapter = NULL;
+ }
return gst_pad_activate_pull (sinkpad, TRUE);
} else {