mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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.
This commit is contained in:
parent
dc9c3f540c
commit
919e906055
2 changed files with 9 additions and 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>
|
2007-12-05 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
* gst/autodetect/gstautovideosink.c:
|
* gst/autodetect/gstautovideosink.c:
|
||||||
|
|
|
@ -2072,13 +2072,12 @@ gst_wavparse_srcpad_event (GstPad * pad, GstEvent * event)
|
||||||
GstWavParse *wavparse = GST_WAVPARSE (gst_pad_get_parent (pad));
|
GstWavParse *wavparse = GST_WAVPARSE (gst_pad_get_parent (pad));
|
||||||
gboolean res = FALSE;
|
gboolean res = FALSE;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (wavparse, "event %d, %s", GST_EVENT_TYPE (event),
|
GST_DEBUG_OBJECT (wavparse, "%s event", GST_EVENT_TYPE_NAME (event));
|
||||||
GST_EVENT_TYPE_NAME (event));
|
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_SEEK:
|
case GST_EVENT_SEEK:
|
||||||
/* can only handle events when we are in the data state */
|
/* 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);
|
res = gst_wavparse_perform_seek (wavparse, event);
|
||||||
}
|
}
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
|
Loading…
Reference in a new issue