[vlc-devel] commit: Fix character/integer confusion - CID 11 ( Rafaël Carré )

git version control git at videolan.org
Fri May 30 15:39:41 CEST 2008


vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Fri May 30 15:41:20 2008 +0200| [d0b4e06a155eb63c3328114a94cfb7b9a58fb780]

Fix character/integer confusion - CID 11

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0b4e06a155eb63c3328114a94cfb7b9a58fb780
---

 modules/stream_out/rtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 3282395..645dbe5 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -525,7 +525,7 @@ static int Open( vlc_object_t *p_this )
 	   a= source-filter: we need our source address
            a= x-plgroup: (missing)
            RTP packets need to get the correct src IP address  */
-        if( (ipv == 4)
+        if( (ipv == '4')
          && net_AddressIsMulticast( (vlc_object_t *)p_stream, p_sys->psz_destination ) )
         {
             snprintf( psz_ttl, sizeof( psz_ttl ), "/%d", p_sys->i_ttl );
@@ -843,7 +843,7 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
 
     p += sprintf( p, "c=IN IP%c %s", ipv, psz_destination );
 
-    if( ( ipv == 4 )
+    if( ( ipv == '4' )
      && net_AddressIsMulticast( (vlc_object_t *)p_stream, psz_destination ) )
     {
         /* Add the deprecated TTL field if it is an IPv4 multicast address */




More information about the vlc-devel mailing list