From 8be514bb7274ba59164bbfbf01e111865f0537c1 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 16 Nov 2004 12:18:53 +0000 Subject: [PATCH] input.c: fixed segfault with access_demux. --- src/input/input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/input/input.c b/src/input/input.c index ddf3b284a9..a5b080611e 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -820,7 +820,8 @@ static int Init( input_thread_t * p_input ) vlc_meta_Delete( p_meta_tmp ); } - if( access2_Control( p_input->input.p_access, ACCESS_GET_META, &p_meta_tmp)) + if( !p_input->input.p_access || + access2_Control( p_input->input.p_access, ACCESS_GET_META, &p_meta_tmp)) p_meta_tmp = NULL; if( p_meta == NULL ) @@ -852,7 +853,8 @@ static int Init( input_thread_t * p_input ) } } - if( !access2_Control( p_input->slave[i]->p_access, + if( p_input->slave[i]->p_access && + !access2_Control( p_input->slave[i]->p_access, ACCESS_GET_META, &p_meta_slave ) ) { if( p_meta == NULL ) -- 2.39.2