Commit 96f5cc4d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not generate a SDP file if SDP is not yet defined (fixes: #2981)

parent 12cf82c8
...@@ -1399,6 +1399,9 @@ static int FileSetup( sout_stream_t *p_stream ) ...@@ -1399,6 +1399,9 @@ static int FileSetup( sout_stream_t *p_stream )
sout_stream_sys_t *p_sys = p_stream->p_sys; sout_stream_sys_t *p_sys = p_stream->p_sys;
FILE *f; FILE *f;
if( p_sys->psz_sdp == NULL )
return VLC_EGENERIC; /* too early */
if( ( f = utf8_fopen( p_sys->psz_sdp_file, "wt" ) ) == NULL ) if( ( f = utf8_fopen( p_sys->psz_sdp_file, "wt" ) ) == NULL )
{ {
msg_Err( p_stream, "cannot open file '%s' (%m)", msg_Err( p_stream, "cannot open file '%s' (%m)",
......
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