1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00
mpv/loader/dshow/cmediasample.h
arpi bda27f2adc big avifile sync - from now we have common code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1546 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-08-16 00:50:02 +00:00

26 lines
560 B
C

#ifndef DS_CMEDIASAMPLE_H
#define DS_CMEDIASAMPLE_H
#include "interfaces.h"
#include "guids.h"
struct CMediaSample: public IMediaSample
{
IMemAllocator* all;
int size;
int actual_size;
char* block;
char* own_block;
int refcount;
int isPreroll;
int isSyncPoint;
AM_MEDIA_TYPE media_type;
int type_valid;
CMediaSample(IMemAllocator* allocator, long _size);
~CMediaSample();
void SetPointer(char* pointer) { block = pointer; }
void ResetPointer() { block = own_block; }
};
#endif /* DS_CMEDIASAMPLE_H */