Commit d74e75bd authored by mstorsjo's avatar mstorsjo

Handle multiple RTSP transport options properly by adding all of them into the mask


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22644 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7c55f4e0
...@@ -1463,11 +1463,11 @@ redirect: ...@@ -1463,11 +1463,11 @@ redirect:
/* handle the options */ /* handle the options */
if (!strcmp(option, "udp")) { if (!strcmp(option, "udp")) {
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_UDP); lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_UDP);
} else if (!strcmp(option, "multicast")) { } else if (!strcmp(option, "multicast")) {
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST); lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST);
} else if (!strcmp(option, "tcp")) { } else if (!strcmp(option, "tcp")) {
lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_TCP); lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_TCP);
} else { } else {
/* Write options back into the buffer, using memmove instead /* Write options back into the buffer, using memmove instead
* of strcpy since the strings may overlap. */ * of strcpy since the strings may overlap. */
......
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