diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2007-12-06 11:46:22 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2007-12-06 11:46:22 +0000 |
commit | 919e906055a4bbf70247c95e117e1840e215a645 (patch) | |
tree | 886389f46fe023bc6158a69869c8b8238ef2ccb0 | |
parent | dc9c3f540c18b1118e2010591edede18c385c4ab (diff) |
gst/wavparse/gstwavparse.c: Fix seeking in .wav files again (#501775). Some people seem to think they don't need to ...
Original commit message from CVS:
* gst/wavparse/gstwavparse.c: (gst_wavparse_srcpad_event):
Fix seeking in .wav files again (#501775). Some people seem to think
they don't need to test their changes when they're just 'reflowing'
some code.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gst/wavparse/gstwavparse.c | 5 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2007-12-06 Tim-Philipp Müller <tim at centricular dot net> + + * gst/wavparse/gstwavparse.c: (gst_wavparse_srcpad_event): + Fix seeking in .wav files again (#501775). Some people seem to think + they don't need to test their changes when they're just 'reflowing' + some code. + 2007-12-05 Wim Taymans <wim.taymans@gmail.com> * gst/autodetect/gstautovideosink.c: diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 78394426..40ad3219 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -2072,13 +2072,12 @@ gst_wavparse_srcpad_event (GstPad * pad, GstEvent * event) GstWavParse *wavparse = GST_WAVPARSE (gst_pad_get_parent (pad)); gboolean res = FALSE; - GST_DEBUG_OBJECT (wavparse, "event %d, %s", GST_EVENT_TYPE (event), - GST_EVENT_TYPE_NAME (event)); + GST_DEBUG_OBJECT (wavparse, "%s event", GST_EVENT_TYPE_NAME (event)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_SEEK: /* can only handle events when we are in the data state */ - if (wavparse->state != GST_WAVPARSE_DATA) { + if (wavparse->state == GST_WAVPARSE_DATA) { res = gst_wavparse_perform_seek (wavparse, event); } gst_event_unref (event); |