mcc_parse: On FlushStop reset all of the state

This commit is contained in:
Jordan Petridis 2019-02-07 20:51:12 +02:00
parent 7c1ca3ef55
commit ca012cd4f0
No known key found for this signature in database
GPG key ID: 902CC06D159744F5

View file

@ -486,6 +486,10 @@ impl MccParse {
state.parser.reset();
state.need_segment = true;
state.pending_events.clear();
state.start_position = gst::ClockTime::from_seconds(0);
state.last_position = gst::ClockTime::from_seconds(0);
state.last_timecode = None;
state.timecode_rate = None;
pad.event_default(element, event)
}