mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-22 01:56:28 +00:00
webrtcsink: fix tracking of signaller state
For the signaller to get stopped, we need to remember that we started it in the first place. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1167>
This commit is contained in:
parent
3368f55a88
commit
a455819871
1 changed files with 2 additions and 0 deletions
|
@ -2973,6 +2973,7 @@ impl WebRTCSink {
|
|||
let signaller = settings.signaller.clone();
|
||||
drop(settings);
|
||||
if state.should_start_signaller(&element) {
|
||||
state.signaller_state = SignallerState::Started;
|
||||
drop(state);
|
||||
signaller.start();
|
||||
}
|
||||
|
@ -3501,6 +3502,7 @@ impl ElementImpl for WebRTCSink {
|
|||
drop(settings);
|
||||
let mut state = self.state.lock().unwrap();
|
||||
if state.should_start_signaller(&element) {
|
||||
state.signaller_state = SignallerState::Started;
|
||||
drop(state);
|
||||
signaller.start();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue