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:
Sebastian Dröge 2025-08-18 13:07:51 +03:00
parent 90cc117095
commit 6fb729d771

View file

@ -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 {