@ -33,7 +33,6 @@
# if HAVE_POLL_H
# if HAVE_POLL_H
# include <poll.h>
# include <poll.h>
# endif
# endif
# include <strings.h>
# include "internal.h"
# include "internal.h"
# include "network.h"
# include "network.h"
# include "os_support.h"
# include "os_support.h"
@ -660,7 +659,7 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
get_word_sep ( transport_protocol , sizeof ( transport_protocol ) ,
get_word_sep ( transport_protocol , sizeof ( transport_protocol ) ,
" / " , & p ) ;
" / " , & p ) ;
if ( ! strcasecmp ( transport_protocol , " rtp " ) ) {
if ( ! av_ strcasecmp ( transport_protocol , " rtp " ) ) {
get_word_sep ( profile , sizeof ( profile ) , " /;, " , & p ) ;
get_word_sep ( profile , sizeof ( profile ) , " /;, " , & p ) ;
lower_transport [ 0 ] = ' \0 ' ;
lower_transport [ 0 ] = ' \0 ' ;
/* rtp/avp/<protocol> */
/* rtp/avp/<protocol> */
@ -669,14 +668,14 @@ static void rtsp_parse_transport(RTSPMessageHeader *reply, const char *p)
" ;, " , & p ) ;
" ;, " , & p ) ;
}
}
th - > transport = RTSP_TRANSPORT_RTP ;
th - > transport = RTSP_TRANSPORT_RTP ;
} else if ( ! strcasecmp ( transport_protocol , " x-pn-tng " ) | |
} else if ( ! av_ strcasecmp ( transport_protocol , " x-pn-tng " ) | |
! strcasecmp ( transport_protocol , " x-real-rdt " ) ) {
! av_ strcasecmp ( transport_protocol , " x-real-rdt " ) ) {
/* x-pn-tng/<protocol> */
/* x-pn-tng/<protocol> */
get_word_sep ( lower_transport , sizeof ( lower_transport ) , " /;, " , & p ) ;
get_word_sep ( lower_transport , sizeof ( lower_transport ) , " /;, " , & p ) ;
profile [ 0 ] = ' \0 ' ;
profile [ 0 ] = ' \0 ' ;
th - > transport = RTSP_TRANSPORT_RDT ;
th - > transport = RTSP_TRANSPORT_RDT ;
}
}
if ( ! strcasecmp ( lower_transport , " TCP " ) )
if ( ! av_ strcasecmp( lower_transport , " TCP " ) )
th - > lower_transport = RTSP_LOWER_TRANSPORT_TCP ;
th - > lower_transport = RTSP_LOWER_TRANSPORT_TCP ;
else
else
th - > lower_transport = RTSP_LOWER_TRANSPORT_UDP ;
th - > lower_transport = RTSP_LOWER_TRANSPORT_UDP ;
@ -1555,7 +1554,7 @@ redirect:
if ( rt - > server_type ! = RTSP_SERVER_REAL & & reply - > real_challenge [ 0 ] ) {
if ( rt - > server_type ! = RTSP_SERVER_REAL & & reply - > real_challenge [ 0 ] ) {
rt - > server_type = RTSP_SERVER_REAL ;
rt - > server_type = RTSP_SERVER_REAL ;
continue ;
continue ;
} else if ( ! strncasecmp ( reply - > server , " WMServer/ " , 9 ) ) {
} else if ( ! av_ strncasecmp( reply - > server , " WMServer/ " , 9 ) ) {
rt - > server_type = RTSP_SERVER_WMS ;
rt - > server_type = RTSP_SERVER_WMS ;
} else if ( rt - > server_type = = RTSP_SERVER_REAL )
} else if ( rt - > server_type = = RTSP_SERVER_REAL )
strcpy ( real_challenge , reply - > real_challenge ) ;
strcpy ( real_challenge , reply - > real_challenge ) ;