Mercurial > mplayer.hg
view loader/dshow/allocator.h @ 2775:8e3875816f6d
added missing #include <malloc.h>
#include "config.h" moved as 1st #include since it defines HAVE_foo_h for
later conditional inclusions
author | pl |
---|---|
date | Fri, 09 Nov 2001 02:17:02 +0000 |
parents | da26060c81ef |
children | 213b35f84cf3 |
line wrap: on
line source
#ifndef DS_ALLOCATOR_H #define DS_ALLOCATOR_H #include "interfaces.h" #include "cmediasample.h" #include "iunk.h" #include <list> struct MemAllocator: public IMemAllocator { ALLOCATOR_PROPERTIES props; std::list<CMediaSample*> used_list; std::list<CMediaSample*> free_list; char* new_pointer; CMediaSample* modified_sample; static GUID interfaces[]; DECLARE_IUNKNOWN(MemAllocator) MemAllocator(); ~MemAllocator(); void SetPointer(char* pointer) { new_pointer=pointer; } void ResetPointer() { if (modified_sample) { modified_sample->ResetPointer(); modified_sample=0; } } static long CreateAllocator(GUID* clsid, GUID* iid, void** ppv); }; #endif /* DS_ALLOCATOR_H */