vlc | branch: master | Sébastien Escudier <[email protected]> | Tue Feb 7 13:01:32 2012 +0100| [d923971d4597147df659bb97690f0e0e0741b895] | committer: Sébastien Escudier
sout_std : do not crash if no destination is given > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d923971d4597147df659bb97690f0e0e0741b895 --- modules/stream_out/standard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/modules/stream_out/standard.c b/modules/stream_out/standard.c index 10a201e..a1cc1cd 100644 --- a/modules/stream_out/standard.c +++ b/modules/stream_out/standard.c @@ -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 ); _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
