webrtcsink: don't hold settings lock while negotiating

This commit is contained in:
Mathieu Duponchelle 2022-10-07 21:06:47 +02:00
parent f82a731b3a
commit 9a345f9c6f

View file

@ -1726,6 +1726,7 @@ impl WebRTCSink {
state.sessions.insert(session_id.to_string(), session);
drop(state);
drop(settings);
// This is intentionally emitted with the pipeline in the Ready state,
// so that application code can create data channels at the correct