summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b7f37f9)
raw | patch | inline | side by side (parent: b7f37f9)
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | |
Thu, 26 Nov 2009 14:54:45 +0000 (15:54 +0100) | ||
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | |
Thu, 26 Nov 2009 14:58:57 +0000 (15:58 +0100) |
Specifically, in addition to clearing lots of variables/offsets
when receiving newsegment, also clear leftover data to match.
when receiving newsegment, also clear leftover data to match.
gst/mpegaudioparse/gstmpegaudioparse.c | patch | blob | history |
index 56eb3692f52ecc07a4738c229f5d69301296b6ee..160adc8ddcf0c1a9cbb8758d2d0c7eb06050c6e4 100644 (file)
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);