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

sout_std : do not crash if no destination is given

(cherry picked from commit d923971d4597147df659bb97690f0e0e0741b895)
Signed-off-by: default avatarSébastien Escudier <sebastien-devel@celeos.eu>
parent 0bff3a72
......@@ -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