Take the playbin lock when accessing the combiner
to add a new pad to link to. Fixes races against
streams-selected messages triggering reconfiguration.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1900>
goto unknown_type;
}
+ GST_PLAY_BIN3_LOCK (playbin);
combine = &playbin->combiner[pb_stream_type];
combiner_control_pad (playbin, combine, pad);
group->pending_about_to_finish = FALSE;
emit_about_to_finish (playbin);
}
+ GST_PLAY_BIN3_UNLOCK (playbin);
GST_PLAY_BIN3_SHUTDOWN_UNLOCK (playbin);