mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
b7f37f9afb
commit
9fe72b5da3
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue