]> git.sesse.net Git - vlc/blobdiff - include/vlc_access.h
Initial VLM class implementation
[vlc] / include / vlc_access.h
index 0b74977a0ad9f542946558f9f20edf5f3595dcd3..8a9b006e8592ebe83b85e1be9f79c699287978cb 100644 (file)
@@ -88,7 +88,7 @@ struct access_t
 
     /* pf_read/pf_block is used to read data.
      * XXX A access should set one and only one of them */
-    int         (*pf_read) ( access_t *, uint8_t *, int );  /* Return -1 if no data yet, 0 if no more data, else real data read */
+    ssize_t     (*pf_read) ( access_t *, uint8_t *, size_t );  /* Return -1 if no data yet, 0 if no more data, else real data read */
     block_t    *(*pf_block)( access_t * );                  /* return a block of data in his 'natural' size, NULL if not yet data or eof */
 
     /* Called for each seek.
@@ -120,6 +120,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;
+    assert( p_access->pf_control );
     return p_access->pf_control( p_access, i_query, args );
 }