Commit b037dd3e authored by Filip Roséen's avatar Filip Roséen Committed by Hugo Beauzée-Luyssen

sout/standard: create_SDP: fix inverted logic

sdp.ptr is only of relevance to us if vlc_memstream_close is
successful, on error the pointer is already handled by the function
(and shall have no meaning to us as its content is not defined).

CID: #1401546
Signed-off-by: Hugo Beauzée-Luyssen's avatarHugo Beauzée-Luyssen <>
parent 18d92bcd
......@@ -184,7 +184,7 @@ static void create_SDP(sout_stream_t *p_stream, sout_access_out_t *p_access)
vlc_memstream_printf(&sdp, "m=video %d udp mpeg\r\n", dport);
/* Register the SDP with the SAP thread */
if (vlc_memstream_close(&sdp))
if (vlc_memstream_close(&sdp) == 0)
msg_Dbg(p_stream, "Generated SDP:\n%s", sdp.ptr);
p_sys->p_session =
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