]> git.sesse.net Git - vlc/commitdiff
SAP announcer needs destination address in URI
authorMarian Durkovic <md@videolan.org>
Sun, 23 Oct 2005 12:21:39 +0000 (12:21 +0000)
committerMarian Durkovic <md@videolan.org>
Sun, 23 Oct 2005 12:21:39 +0000 (12:21 +0000)
Hosts should never send packets with TTL=0

modules/stream_out/rtp.c

index 585664134496565eb6d0ad5d275f0e8728265dbd..2d422af0a9e9db3884a75af7d7c680991fc13095 100644 (file)
@@ -114,7 +114,7 @@ vlc_module_begin();
     add_integer( SOUT_CFG_PREFIX "port-video", 1232, NULL, PORT_VIDEO_TEXT,
                  PORT_VIDEO_LONGTEXT, VLC_TRUE );
 
-    add_integer( SOUT_CFG_PREFIX "ttl", 0, NULL, TTL_TEXT,
+    add_integer( SOUT_CFG_PREFIX "ttl", 1, NULL, TTL_TEXT,
                  TTL_LONGTEXT, VLC_TRUE );
 
     set_callbacks( Open, Close );
@@ -1314,7 +1314,7 @@ static int SapSetup( sout_stream_t *p_stream )
     if( ( p_sys->i_es > 0 || p_sys->p_mux ) && p_sys->psz_sdp && *p_sys->psz_sdp )
     {
         p_sys->p_session = sout_AnnounceRegisterSDP( p_sout, p_sys->psz_sdp,
-                                                     p_sys->psz_session_url,
+                                                     p_sys->psz_destination,
                                                      p_method );
     }