examples: Actually use the provided port in the record examples

This commit is contained in:
Jan Schmidt 2015-11-17 01:12:28 +11:00
parent eaf7b1488c
commit 52fb304ac9
2 changed files with 3 additions and 0 deletions

View file

@ -71,6 +71,7 @@ main (int argc, char *argv[])
/* create a server instance */
server = gst_rtsp_server_new ();
g_object_set (server, "service", port, NULL);
/* get the mount points for this server, every server has a default object
* that be used to map uri mount points to media factories */

View file

@ -65,6 +65,8 @@ main (int argc, char *argv[])
/* create a server instance */
server = gst_rtsp_server_new ();
g_object_set (server, "service", port, NULL);
/* get the mount points for this server, every server has a default object
* that be used to map uri mount points to media factories */
mounts = gst_rtsp_server_get_mount_points (server);