RTP: fix TTL
authorSebastien Escudier <sebastien-devel@celeos.eu>
Wed, 24 Sep 2008 14:38:45 +0000 (16:38 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 27 Sep 2008 09:43:44 +0000 (12:43 +0300)
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
modules/stream_out/rtp.c

index 6659b20..2a772f0 100644 (file)
@@ -994,7 +994,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
 
             default:
             {
-                int ttl = (p_sys->i_ttl > 0) ? p_sys->i_ttl : -1;
+                int ttl = (p_sys->i_ttl >= 0) ? p_sys->i_ttl : -1;
                 int fd = net_ConnectDgram( p_stream, p_sys->psz_destination,
                                            i_port, ttl, p_sys->proto );
                 if( fd == -1 )