Commit 195fda9e 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)

(cherry picked from commit 96f5cc4d)
parent a5f5f1b1
...@@ -1401,6 +1401,9 @@ static int FileSetup( sout_stream_t *p_stream ) ...@@ -1401,6 +1401,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