Mercurial > libavformat.hg
changeset 5871:9451f2f58b14 libavformat
Handle multiple RTSP transport options properly by adding all of them into the mask
author | mstorsjo |
---|---|
date | Tue, 23 Mar 2010 08:00:37 +0000 |
parents | b17b16b532ca |
children | cf5eee67f9eb |
files | rtsp.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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. */