Skip to content

Commit

Permalink
factory: pass permissions to media by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Wim Taymans committed Jul 9, 2013
1 parent 16cfb7b commit ca28a46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gst/rtsp-server/rtsp-media-factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}

/**
Expand Down

0 comments on commit ca28a46

Please sign in to comment.