mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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:
parent
d633c0103a
commit
8317139121
1 changed files with 3 additions and 1 deletions
|
@ -1469,7 +1469,9 @@ default_construct (GstRTSPMediaFactory * factory, const GstRTSPUrl * url)
|
||||||
GST_RTSP_MEDIA_FACTORY_UNLOCK (factory);
|
GST_RTSP_MEDIA_FACTORY_UNLOCK (factory);
|
||||||
|
|
||||||
/* create a new empty media */
|
/* 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);
|
gst_rtsp_media_collect_streams (media);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue