Commit d923971d authored by Sébastien Escudier's avatar Sébastien Escudier

sout_std : do not crash if no destination is given

parent fa7456d3
......@@ -255,7 +255,7 @@ static int fixAccessMux( sout_stream_t *p_stream, char **ppsz_mux,
char *psz_access = *ppsz_access;
if( !psz_mux )
{
const char *psz_ext = strrchr( psz_url, '.' );
const char *psz_ext = psz_url ? strrchr( psz_url, '.' ) : NULL;
if( psz_ext )
psz_ext++; /* use extension */
const char *psz_mux_byext = getMuxFromAlias( psz_ext );
......
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