mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
rtsp-server: allow binding on port 0 (binds on a random port)
This commit is contained in:
parent
6a49744088
commit
1e954a1a5e
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ gst_rtsp_server_create_socket (GstRTSPServer * server,
|
|||
|
||||
/* resolve the server IP address */
|
||||
port = atoi (server->service);
|
||||
if (port != 0)
|
||||
if (port != 0 || !strcmp (server->service, "0"))
|
||||
conn = g_network_address_new (server->address, port);
|
||||
else
|
||||
conn = g_network_service_new (server->service, "tcp", server->address);
|
||||
|
|
Loading…
Reference in a new issue