mp3parse: fix non-flushing seek

Specifically, in addition to clearing lots of variables/offsets
when receiving newsegment, also clear leftover data to match.
This commit is contained in:
Mark Nauwelaerts 2009-11-26 15:54:45 +01:00
parent b7f37f9afb
commit 9fe72b5da3

View file

@ -559,6 +559,8 @@ gst_mp3parse_sink_event (GstPad * pad, GstEvent * event)
mp3parse->pending_ts = GST_CLOCK_TIME_NONE;
mp3parse->tracked_offset = 0;
mp3parse->sync_offset = 0;
/* also clear leftover data if clearing so much state */
gst_adapter_clear (mp3parse->adapter);
gst_event_parse_new_segment_full (event, &update, &rate, &applied_rate,
&format, &start, &stop, &pos);