]> git.sesse.net Git - vlc/commitdiff
Do not send scope ID over the wire
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 22 Aug 2007 20:10:41 +0000 (20:10 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 22 Aug 2007 20:10:41 +0000 (20:10 +0000)
modules/stream_out/rtp.c

index 91609e9dbebba81bbb6a6606c40521e54971d691..92e34e7bd2d6d56b09c3002d338ce5ce20783d17 100644 (file)
@@ -1970,12 +1970,14 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
                     int sport = var_GetInteger (p_access, "src-port");
 
                     httpd_ServerIP( cl, ip );
-                    fprintf( stderr, "src = %s, ip = %s\n", src, ip );
 
                     if( ( src != NULL ) && strcmp( src, ip ) )
                     {
                         /* Specify source IP if it is different from the RTSP
                          * control connection server address */
+                        char *ptr = strchr( src, '%' );
+                        if( ptr != NULL ) *ptr = '\0'; /* remove scope ID */
+
                         httpd_MsgAdd( answer, "Transport",
                                       "RTP/AVP/UDP;unicast;source=%s;"
                                       "client_port=%u-%u;server_port=%u-%u;"