From ca28a466004b515b504cbef318bce4dba5d67c9e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 9 Jul 2013 16:38:39 +0200 Subject: [PATCH] factory: pass permissions to media by default --- gst/rtsp-server/rtsp-media-factory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/rtsp-server/rtsp-media-factory.c b/gst/rtsp-server/rtsp-media-factory.c index d210d5f8c7..2864f40ae3 100644 --- a/gst/rtsp-server/rtsp-media-factory.c +++ b/gst/rtsp-server/rtsp-media-factory.c @@ -891,6 +891,7 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media) guint size; GstRTSPLowerTrans protocols; GstRTSPAddressPool *pool; + GstRTSPPermissions *perms; /* configure the sharedness */ GST_RTSP_MEDIA_FACTORY_LOCK (factory); @@ -909,6 +910,10 @@ default_configure (GstRTSPMediaFactory * factory, GstRTSPMedia * media) gst_rtsp_media_set_address_pool (media, pool); g_object_unref (pool); } + if ((perms = gst_rtsp_media_factory_get_permissions (factory))) { + gst_rtsp_media_set_permissions (media, perms); + gst_rtsp_permissions_unref (perms); + } } /**