summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--ext/ivorbis/vorbisfile.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 438228e9..3c9c97ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 {