mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-27 12:30:28 +00:00
Release 'state' lock before emitting signals
This commit is contained in:
parent
794df19122
commit
22205c235d
1 changed files with 3 additions and 1 deletions
|
@ -1724,7 +1724,6 @@ impl WebRTCSink {
|
|||
}
|
||||
})?;
|
||||
|
||||
element.emit_by_name::<()>("consumer-added", &[&peer_id, &webrtcbin]);
|
||||
if settings.enable_data_channel_navigation {
|
||||
state.navigation_handler = Some(
|
||||
NavigationEventHandler::new(&element, &webrtcbin)
|
||||
|
@ -1740,6 +1739,9 @@ impl WebRTCSink {
|
|||
|
||||
state.consumers.insert(peer_id.to_string(), consumer);
|
||||
|
||||
drop(state);
|
||||
element.emit_by_name::<()>("consumer-added", &[&peer_id, &webrtcbin]);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue