rtsp-media-factory: Don't create a pipeline for the media pipeline string
authorSebastian Dröge <sebastian@centricular.com>
Thu, 1 Dec 2016 16:04:34 +0000 (18:04 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 1 Dec 2016 16:04:34 +0000 (18:04 +0200)
We're going to put a pipeline into a pipeline otherwise, which is not
exactly ideal.

gst/rtsp-server/rtsp-media-factory.c

index 09e5160..9cea6ca 100644 (file)
@@ -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;