Commit f11f127a authored by Edward Hervey's avatar Edward Hervey 🤘 Committed by Tim-Philipp Müller

rtsp-stream: Use cached address when allocating sockets

If an address/port was previously decided upon (ex: multicast in the
SDP), then use that instead of re-creating another one

Fixes #57
parent 64f67f0e
......@@ -1359,7 +1359,10 @@ again:
else
flags |= GST_RTSP_ADDRESS_FLAG_IPV4;
addr = gst_rtsp_address_pool_acquire_address (pool, flags, 2);
if (*server_addr_out)
addr = *server_addr_out;
else
addr = gst_rtsp_address_pool_acquire_address (pool, flags, 2);
if (addr == NULL)
goto no_address;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment