Commit dbdbe005 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Do not crash if sout access is not specified - fixes #2665

Should we print an error and fail?
parent 0ef62810
......@@ -300,6 +300,8 @@ sout_access_out_t *sout_AccessOutNew( vlc_object_t *p_sout,
psz_next = config_ChainCreate( &p_access->psz_access, &p_access->p_cfg,
psz_access );
free( psz_next );
if( !p_access->psz_access )
p_access->psz_access = strdup( "" );
p_access->psz_path = strdup( psz_name ? psz_name : "" );
p_access->p_sys = NULL;
p_access->pf_seek = NULL;
......
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