mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 10:30:40 +00:00
gcc: Fix deadlock on shutdown
We were holding the element .state lock while trying to shutdown leading to a deadlock. Fixes: https://github.com/centricular/webrtcsink/issues/90
This commit is contained in:
parent
8605df4b16
commit
c3a1536849
1 changed files with 2 additions and 0 deletions
|
@ -1120,6 +1120,8 @@ impl BandwidthEstimator {
|
|||
} else {
|
||||
let mut state = self.state.lock().unwrap();
|
||||
state.flow_return = Err(gst::FlowError::Flushing);
|
||||
drop(state);
|
||||
|
||||
self.srcpad.stop_task()?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue