mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
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:
parent
cdca6c9372
commit
c09dc96c2c
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue