From cd2de36f617b57813c44fd94babd7fa952bccf8d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 13 Mar 2008 00:05:27 +0100 Subject: [PATCH] Fix crash when (access_t*)->pf_control is NULL This was triggered by DBus module using access2_Control --- include/vlc_access.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vlc_access.h b/include/vlc_access.h index 1fbc2484b1..4435f068d5 100644 --- a/include/vlc_access.h +++ b/include/vlc_access.h @@ -119,7 +119,7 @@ struct access_t static inline int access2_vaControl( access_t *p_access, int i_query, va_list args ) { - if( !p_access ) return VLC_EGENERIC; + if( !p_access || !p_access->pf_control ) return VLC_EGENERIC; return p_access->pf_control( p_access, i_query, args ); } -- 2.39.2