togglerecord: Also check for flushing at the top of the chain function

It would return further down anyway but there's no point in doing
useless work if it can be avoided.
This commit is contained in:
Sebastian Dröge 2020-12-31 12:06:18 +02:00
parent cdca6c9372
commit c09dc96c2c

View file

@ -1061,6 +1061,9 @@ impl ToggleRecord {
if state.eos {
return Err(gst::FlowError::Eos);
}
if state.flushing {
return Err(gst::FlowError::Flushing);
}
}
let handle_result = if stream != self.main_stream {