]> git.sesse.net Git - vlc/commitdiff
Handle multicast like unicast in SAP
authorClément Stenac <zorglub@videolan.org>
Sun, 25 Sep 2005 10:10:24 +0000 (10:10 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 25 Sep 2005 10:10:24 +0000 (10:10 +0000)
I'm really sorry, I couldn't find who sent this patch. Just drop me a mail, I'll add you to the THANKS list.

modules/services_discovery/sap.c

index 51179b6cabf31edb378c19a8f46b666448977e47..27811eaf1f2bb49dc9bc10b1d5e2c129b50e05b1 100644 (file)
@@ -1011,14 +1011,8 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
         i_port = 1234;
     }
 
-    if( net_AddressIsMulticast( p_obj, psz_uri ) )
-    {
-        asprintf( &p_sdp->psz_uri, "%s://@%s:%i", psz_proto, psz_uri, i_port );
-    }
-    else
-    {
-        asprintf( &p_sdp->psz_uri, "%s://%s:%i", psz_proto, psz_uri, i_port );
-    }
+    asprintf( &p_sdp->psz_uri, "%s://@%s:%i", psz_proto, psz_uri, i_port );
+
     FREE( psz_uri );
     FREE( psz_proto );
     return VLC_SUCCESS;