]> git.sesse.net Git - vlc/commitdiff
sout_std : do not crash if no destination is given
authorSébastien Escudier <sebastien-devel@celeos.eu>
Tue, 7 Feb 2012 12:01:32 +0000 (13:01 +0100)
committerSébastien Escudier <sebastien-devel@celeos.eu>
Tue, 7 Feb 2012 12:02:27 +0000 (13:02 +0100)
modules/stream_out/standard.c

index 10a201e450a9fd9e91a80748ba2064486c4809c2..a1cc1cd4b9c33caca2bab06ff66a5160f3b1fe64 100644 (file)
@@ -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 );