mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-18 08:06:31 +00:00
webrtscink: fix deadlock when answering
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/637 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1955>
This commit is contained in:
parent
f646504fce
commit
4720b575b6
1 changed files with 3 additions and 1 deletions
|
@ -2416,7 +2416,9 @@ impl BaseWebRTCSink {
|
|||
let signaller = settings.signaller.clone();
|
||||
drop(settings);
|
||||
|
||||
if let Some(session) = self.state.lock().unwrap().sessions.get(session_id).cloned() {
|
||||
let session = self.state.lock().unwrap().sessions.get(session_id).cloned();
|
||||
|
||||
if let Some(session) = session {
|
||||
let mut session = session.0.lock().unwrap();
|
||||
let sdp = answer.sdp();
|
||||
|
||||
|
|
Loading…
Reference in a new issue