]> git.sesse.net Git - vlc/commitdiff
Add missing unicast parameter in the Transport: response
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Fri, 6 Jun 2008 13:51:52 +0000 (16:51 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Fri, 6 Jun 2008 14:15:09 +0000 (17:15 +0300)
So-called "RTSP" VoD remains extremely broken,
and I have no intention to fix it.

modules/misc/rtsp.c

index a97551dd4ee9f1d65c33c983976fa242708a3239..450551d9ef8171f1ff1c5d2cb795531570c04be0 100644 (file)
@@ -1019,19 +1019,19 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
                     if( strstr( psz_transport, "MP2T/H2221/UDP" ) )
                     {
                         httpd_MsgAdd( answer, "Transport",
-                                      "MP2T/H2221/UDP;client_port=%d-%d",
+                                      "MP2T/H2221/UDP;unicast;client_port=%d-%d",
                                       i_port, i_port + 1 );
                     }
                     else if( strstr( psz_transport, "RAW/RAW/UDP" ) )
                     {
                         httpd_MsgAdd( answer, "Transport",
-                                      "RAW/RAW/UDP;client_port=%d-%d",
+                                      "RAW/RAW/UDP;unicast;client_port=%d-%d",
                                       i_port, i_port + 1 );
                     }
                 }
                 else
                     httpd_MsgAdd( answer, "Transport",
-                                  "RTP/AVP/UDP;client_port=%d-%d",
+                                  "RTP/AVP/UDP;unicast;client_port=%d-%d",
                                   i_port, i_port + 1 );
             }
             else /* TODO  strstr( psz_transport, "interleaved" ) ) */