diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2006-07-15 11:57:00 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2006-07-15 11:57:00 +0000 |
commit | a93b6e28ca08f4b7a4a06b29103ca6184d42c679 (patch) | |
tree | dff1ffb70c9a3f2ebec07cc5ecd68323bf1f5e50 | |
parent | 7bef88ec51d777390e531093845f9ed29174589e (diff) | |
download | gst-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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/ivorbis/vorbisfile.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2006-07-15 Stefan Kost <ensonic@users.sf.net> + * ext/ivorbis/vorbisfile.c: (gst_ivorbisfile_sink_activate): + Reset adapter. + +2006-07-15 Stefan Kost <ensonic@users.sf.net> + * gst/spectrum/demo-audiotest.c: (main): * gst/spectrum/demo-osssrc.c: (main): Do not use deprecated gtk functions. 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 { |