ges: launcher: Never put sinks in a GstPipeline

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4732>
This commit is contained in:
Thibault Saunier 2023-04-28 17:55:45 +02:00 committed by GStreamer Marge Bot
parent 1a2d136438
commit 3bb03179c9

View file

@ -961,7 +961,9 @@ _set_sink (GESLauncher * self, const gchar * sink_desc, SetSinkFunc set_func)
if (sink_desc != NULL) { if (sink_desc != NULL) {
GError *err = NULL; GError *err = NULL;
GstElement *sink = gst_parse_bin_from_description_full (sink_desc, TRUE, GstElement *sink = gst_parse_bin_from_description_full (sink_desc, TRUE,
NULL, GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS, &err); NULL,
GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS | GST_PARSE_FLAG_PLACE_IN_BIN,
&err);
if (sink == NULL) { if (sink == NULL) {
GST_ERROR ("could not create the requested videosink %s (err: %s), " GST_ERROR ("could not create the requested videosink %s (err: %s), "
"exiting", err ? err->message : "", sink_desc); "exiting", err ? err->message : "", sink_desc);