factory: pass permissions to media by default

This commit is contained in:
Wim Taymans 2013-07-09 16:38:39 +02:00
parent 16cfb7b8c0
commit ca28a46600

View file

@ -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);
}
}
/**