mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
factory: pass permissions to media by default
This commit is contained in:
parent
16cfb7b8c0
commit
ca28a46600
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue