[vlc-devel] commit: Do not crash if sout access is not specified - fixes #2665 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Apr 16 14:25:10 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 16 15:24:33 2009 +0300| [dbdbe005f7569a0986f9416ae924e35b045ad9a1] | committer: Rémi Denis-Courmont
Do not crash if sout access is not specified - fixes #2665
Should we print an error and fail?
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbdbe005f7569a0986f9416ae924e35b045ad9a1
---
src/stream_output/stream_output.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index 5777fbd..2726a35 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -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;
More information about the vlc-devel
mailing list