ext/faad/gstfaad.c: Always drain before activating the new segment.

Original commit message from CVS:
* ext/faad/gstfaad.c: (gst_faad_sink_event):
Always drain before activating the new segment.
This commit is contained in:
Wim Taymans 2008-06-02 17:06:34 +00:00
parent 8104f31c71
commit f638d690fe
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2008-06-02 Wim Taymans <wim.taymans@collabora.co.uk>
* ext/faad/gstfaad.c: (gst_faad_sink_event):
Always drain before activating the new segment.
2008-06-02 Sebastian Dröge <slomo@circular-chaos.org>
* gst/interleave/interleave.c: (gst_interleave_pad_get_type),

View file

@ -896,6 +896,9 @@ gst_faad_sink_event (GstPad * pad, GstEvent * event)
gst_event_parse_new_segment (event, &is_update, &rate, &fmt, &start,
&end, &base);
/* drain queued buffers before we activate the new segment */
gst_faad_drain (faad);
if (fmt == GST_FORMAT_TIME) {
GST_DEBUG ("Got NEWSEGMENT event in GST_FORMAT_TIME, passing on (%"
GST_TIME_FORMAT " - %" GST_TIME_FORMAT ")", GST_TIME_ARGS (start),
@ -921,9 +924,6 @@ gst_faad_sink_event (GstPad * pad, GstEvent * event)
}
gst_event_unref (event);
/* drain queued buffers before we activate the new segment */
gst_faad_drain (faad);
event = gst_event_new_new_segment (is_update, rate,
GST_FORMAT_TIME, new_start, new_end, new_start);