diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-06 21:43:45 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-06 21:43:45 +0000 |
commit | c8b40d3bd00cab519ea4e55116332efd12f9b381 (patch) | |
tree | 51c56b549f24c395c830c196fc099e0240c4fc21 /loader/dshow/allocator.h | |
parent | 0742d52b569e69d3df278afb388abd76e384b7c8 (diff) | |
download | mpv-c8b40d3bd00cab519ea4e55116332efd12f9b381.tar.bz2 mpv-c8b40d3bd00cab519ea4e55116332efd12f9b381.tar.xz |
avifile-0.6-CVS merge
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@714 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/allocator.h')
-rw-r--r-- | loader/dshow/allocator.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/loader/dshow/allocator.h b/loader/dshow/allocator.h index 0b4917a0a9..4b26c67b79 100644 --- a/loader/dshow/allocator.h +++ b/loader/dshow/allocator.h @@ -6,19 +6,29 @@ #include <list> #include "iunk.h" #include "default.h" -using namespace std; + class MemAllocator: public IMemAllocator { ALLOCATOR_PROPERTIES props; - list<CMediaSample*> used_list; - list<CMediaSample*> free_list; + std::list<CMediaSample*> used_list; + std::list<CMediaSample*> free_list; + char* new_pointer; + CMediaSample* modified_sample; static GUID interfaces[]; DECLARE_IUNKNOWN(MemAllocator) public: MemAllocator(); ~MemAllocator(){delete vt;} static long CreateAllocator(GUID* clsid, GUID* iid, void** ppv); - + void SetPointer(char* pointer) { new_pointer=pointer; } + void ResetPointer() + { + if(modified_sample) + { + modified_sample->ResetPointer(); + modified_sample=0; + } + } static HRESULT STDCALL SetProperties ( IMemAllocator * This, /* [in] */ ALLOCATOR_PROPERTIES *pRequest, |