Revert [cd2de36f617b57813c44fd94babd7fa952bccf8d]
authorRafaël Carré <funman@videolan.org>
Thu, 13 Mar 2008 15:18:35 +0000 (16:18 +0100)
committerRafaël Carré <funman@videolan.org>
Thu, 13 Mar 2008 15:18:35 +0000 (16:18 +0100)
assert that pf_control is available

include/vlc_access.h

index 4435f06..8a9b006 100644 (file)
@@ -119,7 +119,8 @@ struct access_t
 
 static inline int access2_vaControl( access_t *p_access, int i_query, va_list args )
 {
-    if( !p_access || !p_access->pf_control ) return VLC_EGENERIC;
+    if( !p_access ) return VLC_EGENERIC;
+    assert( p_access->pf_control );
     return p_access->pf_control( p_access, i_query, args );
 }