[vlc-devel] commit: Fix crash when (access_t*)->pf_control is NULL ( Rafaël Carré )
git version control
git at videolan.org
Thu Mar 13 00:17:09 CET 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Mar 13 00:05:27 2008 +0100| [cd2de36f617b57813c44fd94babd7fa952bccf8d]
Fix crash when (access_t*)->pf_control is NULL
This was triggered by DBus module using access2_Control
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd2de36f617b57813c44fd94babd7fa952bccf8d
---
include/vlc_access.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/vlc_access.h b/include/vlc_access.h
index 1fbc248..4435f06 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 );
}
More information about the vlc-devel
mailing list