Always let FLUSH_START events flow downstream.

Original commit message from CVS:
* ext/mad/gstmad.c: (gst_mad_sink_event):
* gst/mpegaudioparse/gstmpegaudioparse.c:
(gst_mp3parse_sink_event):
Always let FLUSH_START events flow downstream.
This commit is contained in:
Edward Hervey 2008-05-10 00:44:00 +00:00
parent 6fe41c32bb
commit 130c46902a
4 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2008-05-10 Edward Hervey <edward.hervey@collabora.co.uk>
* ext/mad/gstmad.c: (gst_mad_sink_event):
* gst/mpegaudioparse/gstmpegaudioparse.c:
(gst_mp3parse_sink_event):
Always let FLUSH_START events flow downstream.
2008-05-07 Tim-Philipp Müller <tim.muller at collabora co uk> 2008-05-07 Tim-Philipp Müller <tim.muller at collabora co uk>
* configure.ac: * configure.ac:

2
common

@ -1 +1 @@
Subproject commit 9b28214399156457fd6b43d0604a47e4bdf19c28 Subproject commit dbf8f3aeceb6e57de097951a670cd853b4886ad8

View file

@ -988,6 +988,7 @@ gst_mad_sink_event (GstPad * pad, GstEvent * event)
mad->tempsize = 0; mad->tempsize = 0;
mad_frame_mute (&mad->frame); mad_frame_mute (&mad->frame);
mad_synth_mute (&mad->synth); mad_synth_mute (&mad->synth);
case GST_EVENT_FLUSH_START:
result = gst_pad_event_default (pad, event); result = gst_pad_event_default (pad, event);
break; break;

View file

@ -558,7 +558,9 @@ gst_mp3parse_sink_event (GstPad * pad, GstEvent * event)
res = gst_pad_push_event (mp3parse->srcpad, event); res = gst_pad_push_event (mp3parse->srcpad, event);
break; break;
default: default:
if (mp3parse->pending_segment && GST_EVENT_TYPE (event) != GST_EVENT_EOS) { if (mp3parse->pending_segment &&
(GST_EVENT_TYPE (event) != GST_EVENT_EOS) &&
(GST_EVENT_TYPE (event) != GST_EVENT_FLUSH_START)) {
/* Cache all events except EOS and the ones above if we have /* Cache all events except EOS and the ones above if we have
* a pending segment */ * a pending segment */
mp3parse->pending_events = mp3parse->pending_events =