mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-01 17:23:48 +00:00
fallbacksrc: Don't lock CustomSource state lock twice when exposing pads
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2474>
This commit is contained in:
parent
90cc117095
commit
6fb729d771
1 changed files with 3 additions and 0 deletions
|
@ -504,10 +504,13 @@ impl CustomSource {
|
|||
.filter(|p| p.is_selected)
|
||||
.map(|p| p.stream.stream_id().unwrap())
|
||||
.collect::<Vec<_>>();
|
||||
drop(state);
|
||||
if let Some(message) = self.handle_stream_selection(selected_ids) {
|
||||
let _ = self.obj().post_message(message);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
drop(state);
|
||||
}
|
||||
|
||||
if is_exposed {
|
||||
|
|
Loading…
Reference in a new issue