diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-23 15:54:42 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2002-12-23 15:54:42 +0000 |
commit | 9b2f0a778eaa65fc7cfe197d318b4faed40b1d10 (patch) | |
tree | 2e360b243be07e5500647fce4d7e0327467f09e3 /src/libw32dll/DirectShow/allocator.c | |
parent | d15276928e22160cdb606a0cf65ad48f1268f072 (diff) | |
download | xine-lib-9b2f0a778eaa65fc7cfe197d318b4faed40b1d10.tar.gz xine-lib-9b2f0a778eaa65fc7cfe197d318b4faed40b1d10.tar.bz2 |
wmv9 support
CVS patchset: 3651
CVS date: 2002/12/23 15:54:42
Diffstat (limited to 'src/libw32dll/DirectShow/allocator.c')
-rw-r--r-- | src/libw32dll/DirectShow/allocator.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/libw32dll/DirectShow/allocator.c b/src/libw32dll/DirectShow/allocator.c index 0f7bf6838..cf4848da5 100644 --- a/src/libw32dll/DirectShow/allocator.c +++ b/src/libw32dll/DirectShow/allocator.c @@ -2,9 +2,17 @@ #include "com.h" #include "../wine/winerror.h" #include <stdio.h> +#include <stdlib.h> static int AllocatorKeeper = 0; +struct _avm_list_t +{ + struct _avm_list_t* next; + struct _avm_list_t* prev; + void* member; +}; + static inline int avm_list_size(avm_list_t* head) { avm_list_t* it = head; @@ -100,7 +108,7 @@ static inline avm_list_t* avm_list_find(avm_list_t* head, void* member) return NULL; } -static long MemAllocator_CreateAllocator(GUID* clsid, GUID* iid, void** ppv) +static long MemAllocator_CreateAllocator(GUID* clsid, const GUID* iid, void** ppv) { IMemAllocator* p; int result; @@ -275,7 +283,7 @@ static void MemAllocator_ResetPointer(MemAllocator* This) } } -void MemAllocator_Destroy(MemAllocator* This) +static void MemAllocator_Destroy(MemAllocator* This) { Debug printf("MemAllocator_Destroy(%p) called (%d, %d)\n", This, This->refcount, AllocatorKeeper); if (--AllocatorKeeper == 0) |