]> git.sesse.net Git - vlc/commitdiff
ASF: macro removal in ASF_CountObject
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Jan 2012 17:05:26 +0000 (18:05 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Jan 2012 17:05:56 +0000 (18:05 +0100)
modules/demux/asf/libasf.c
modules/demux/asf/libasf.h

index 245edd97f691d9f7513965189f7d366e2926fe50..e91f1956678d175a63a9b8256b8aac5d118d0c3e 100644 (file)
@@ -1583,11 +1583,12 @@ void ASF_FreeObjectRoot( stream_t *s, asf_object_root_t *p_root )
     free( p_root );
 }
 
-int  __ASF_CountObject( asf_object_t *p_obj, const guid_t *p_guid )
+int ASF_CountObject( void *_p_obj, const guid_t *p_guid )
 {
     int i_count;
-    asf_object_t *p_child;
+    asf_object_t *p_child, *p_obj;
 
+    p_obj = (asf_object_t *)_p_obj;
     if( !p_obj )
         return 0;
 
index 8481ccb825f4a0b147745dd7e47befce7587be7a..91d0e4566057e1845671fb5fe9d2968ecbfc506c 100644 (file)
@@ -359,8 +359,7 @@ typedef union asf_object_u
 asf_object_root_t *ASF_ReadObjectRoot( stream_t *, int b_seekable );
 void               ASF_FreeObjectRoot( stream_t *, asf_object_root_t *p_root );
 
-#define ASF_CountObject( a, b ) __ASF_CountObject( (asf_object_t*)(a), b )
-int  __ASF_CountObject ( asf_object_t *p_obj, const guid_t *p_guid );
+int ASF_CountObject ( void *p_obj, const guid_t *p_guid );
 
 #define ASF_FindObject( a, b, c )  __ASF_FindObject( (asf_object_t*)(a), b, c )
 void *__ASF_FindObject( asf_object_t *p_obj, const guid_t *p_guid, int i_number );