media-factory: Create media objects with the proper transport mode

The function called immediately afterwards (collect_streams()) will
need it to work properly
This commit is contained in:
Edward Hervey 2016-12-02 15:38:04 +01:00 committed by Edward Hervey
parent d633c0103a
commit 8317139121

View file

@ -1469,7 +1469,9 @@ default_construct (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
GST_RTSP_MEDIA_FACTORY_UNLOCK (factory);
/* create a new empty media */
media = g_object_new (media_gtype, "element", element, NULL);
media =
g_object_new (media_gtype, "element", element, "transport-mode",
factory->priv->transport_mode, NULL);
gst_rtsp_media_collect_streams (media);