From d515ca53c0554f270035bb2441e952b66eaeb78d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cl=C3=A9ment=20Stenac?= Date: Sun, 23 Oct 2005 09:43:43 +0000 Subject: [PATCH] psz_uri can be null in sap announcer if we have a SDP (Closes:#403) --- src/stream_output/sap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/stream_output/sap.c b/src/stream_output/sap.c index eafffec7f8..b1efda9d93 100644 --- a/src/stream_output/sap.c +++ b/src/stream_output/sap.c @@ -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; } -- 2.39.2