diff --git a/gst/rtsp-server/rtsp-media-factory.c b/gst/rtsp-server/rtsp-media-factory.c index 9cea6ca962..191480f8ba 100644 --- a/gst/rtsp-server/rtsp-media-factory.c +++ b/gst/rtsp-server/rtsp-media-factory.c @@ -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);