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.
This commit is contained in:
Sebastian Dröge 2016-12-01 18:04:34 +02:00
parent 09e499387d
commit 708fd3c325

View 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;