diff loader/dshow/cmediasample.h @ 713:9355b2ae634e

avifile-0.6-CVS merge
author arpi_esp
date Sun, 06 May 2001 21:43:45 +0000
parents bdc4a8fc04d8
children da26060c81ef
line wrap: on
line diff
--- a/loader/dshow/cmediasample.h	Sun May 06 19:38:57 2001 +0000
+++ b/loader/dshow/cmediasample.h	Sun May 06 21:43:45 2001 +0000
@@ -10,6 +10,7 @@
     int size;
     int actual_size;
     char* block;
+    char* old_block;
     int refcount;
     int isPreroll;
     int isSyncPoint;
@@ -18,6 +19,8 @@
 public:
     CMediaSample(IMemAllocator* allocator, long _size);
     ~CMediaSample();
+    void SetPointer(char* pointer) { old_block=block; block=pointer; }
+    void ResetPointer() { block=old_block; old_block=0; }
 
     static long STDCALL QueryInterface ( 
         IUnknown * This,