]> git.sesse.net Git - vlc/commitdiff
psz_uri can be null in sap announcer if we have a SDP (Closes:#403)
authorClément Stenac <zorglub@videolan.org>
Sun, 23 Oct 2005 09:43:43 +0000 (09:43 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 23 Oct 2005 09:43:43 +0000 (09:43 +0000)
src/stream_output/sap.c

index eafffec7f8536bc609315a3a8bedc84f9dbff6cd..b1efda9d9306e0c09dc62729490d0b4ea18432cc 100644 (file)
@@ -244,11 +244,10 @@ static int announce_SAPAnnounceAdd( sap_handler_t *p_sap,
 
     vlc_mutex_lock( &p_sap->object_lock );
 
-    if( p_session->psz_uri == NULL )
+    if( p_session->psz_uri == NULL && p_session->psz_sdp == NULL )
     {
         vlc_mutex_unlock( &p_sap->object_lock );
-        msg_Err( p_sap, "*FIXME* Unexpected NULL URI for SAP announce" );
-        msg_Err( p_sap, "This should not happen. VLC needs fixing." );
+        msg_Err( p_sap, "Trying to create a NULL SAP announce" );
         return VLC_EGENERIC;
     }