From 708fd3c325573b294e1c9a5ebc96ca4194e3e505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 1 Dec 2016 18:04:34 +0200 Subject: [PATCH] rtsp-media-factory: Don't create a pipeline for the media pipeline string We're going to put a pipeline into a pipeline otherwise, which is not exactly ideal. --- gst/rtsp-server/rtsp-media-factory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-media-factory.c b/gst/rtsp-server/rtsp-media-factory.c index 09e5160423..9cea6ca962 100644 --- a/gst/rtsp-server/rtsp-media-factory.c +++ b/gst/rtsp-server/rtsp-media-factory.c @@ -1414,7 +1414,9 @@ default_create_element (GstRTSPMediaFactory * factory, const GstRTSPUrl * url) goto no_launch; /* parse the user provided launch line */ - element = gst_parse_launch (priv->launch, &error); + element = + gst_parse_launch_full (priv->launch, NULL, GST_PARSE_FLAG_PLACE_IN_BIN, + &error); if (element == NULL) goto parse_error;