# HG changeset patch # User mstorsjo # Date 1269331237 0 # Node ID 9451f2f58b14ad7129df8f08e8bfecf5559949d5 # Parent b17b16b532ca38313db44a7c93f46a8e3dce381a Handle multiple RTSP transport options properly by adding all of them into the mask diff -r b17b16b532ca -r 9451f2f58b14 rtsp.c --- a/rtsp.c Tue Mar 23 07:59:23 2010 +0000 +++ b/rtsp.c Tue Mar 23 08:00:37 2010 +0000 @@ -1463,11 +1463,11 @@ /* handle the options */ 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")) { - lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST); + lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_UDP_MULTICAST); } else if (!strcmp(option, "tcp")) { - lower_transport_mask = (1<< RTSP_LOWER_TRANSPORT_TCP); + lower_transport_mask |= (1<< RTSP_LOWER_TRANSPORT_TCP); } else { /* Write options back into the buffer, using memmove instead * of strcpy since the strings may overlap. */