From a45581987189b45bc9d9d55750d0181806d6fe1b Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Sat, 8 Apr 2023 01:34:07 +0200 Subject: [PATCH] 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: --- net/webrtc/src/webrtcsink/imp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/webrtc/src/webrtcsink/imp.rs b/net/webrtc/src/webrtcsink/imp.rs index 02c485d6..aeb92905 100644 --- a/net/webrtc/src/webrtcsink/imp.rs +++ b/net/webrtc/src/webrtcsink/imp.rs @@ -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(); }