summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-07-15 11:57:00 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2006-07-15 11:57:00 +0000
commita93b6e28ca08f4b7a4a06b29103ca6184d42c679 (patch)
treedff1ffb70c9a3f2ebec07cc5ecd68323bf1f5e50 /ext
parent7bef88ec51d777390e531093845f9ed29174589e (diff)
downloadgst-plugins-bad-a93b6e28ca08f4b7a4a06b29103ca6184d42c679.tar.gz
gst-plugins-bad-a93b6e28ca08f4b7a4a06b29103ca6184d42c679.tar.bz2
gst-plugins-bad-a93b6e28ca08f4b7a4a06b29103ca6184d42c679.zip
ext/ivorbis/vorbisfile.c: Reset adapter.
Original commit message from CVS: * ext/ivorbis/vorbisfile.c: (gst_ivorbisfile_sink_activate): Reset adapter.
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 {