Commit d0b4e06a authored by Rafaël Carré's avatar Rafaël Carré

Fix character/integer confusion - CID 11

parent 39ed0e0d
...@@ -525,7 +525,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -525,7 +525,7 @@ static int Open( vlc_object_t *p_this )
a= source-filter: we need our source address a= source-filter: we need our source address
a= x-plgroup: (missing) a= x-plgroup: (missing)
RTP packets need to get the correct src IP address */ 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 ) ) && net_AddressIsMulticast( (vlc_object_t *)p_stream, p_sys->psz_destination ) )
{ {
snprintf( psz_ttl, sizeof( psz_ttl ), "/%d", p_sys->i_ttl ); snprintf( psz_ttl, sizeof( psz_ttl ), "/%d", p_sys->i_ttl );
...@@ -843,7 +843,7 @@ static char *SDPGenerate( const sout_stream_t *p_stream, ...@@ -843,7 +843,7 @@ static char *SDPGenerate( const sout_stream_t *p_stream,
p += sprintf( p, "c=IN IP%c %s", ipv, psz_destination ); 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 ) ) && net_AddressIsMulticast( (vlc_object_t *)p_stream, psz_destination ) )
{ {
/* Add the deprecated TTL field if it is an IPv4 multicast address */ /* Add the deprecated TTL field if it is an IPv4 multicast address */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment