[vlc-devel] commit: Revert [cd2de36f617b57813c44fd94babd7fa952bccf8d] ( Rafaël Carré )

git version control git at videolan.org
Thu Mar 13 16:19:18 CET 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Mar 13 16:18:35 2008 +0100| [6d9e92da983e3ae91b09ce983aae5b851a6d884c]

Revert [cd2de36f617b57813c44fd94babd7fa952bccf8d]

assert that pf_control is available

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d9e92da983e3ae91b09ce983aae5b851a6d884c
---

 include/vlc_access.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/vlc_access.h b/include/vlc_access.h
index 4435f06..8a9b006 100644
--- a/include/vlc_access.h
+++ b/include/vlc_access.h
@@ -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 );
 }
 




More information about the vlc-devel mailing list