vo_dxr3: Fix validity checks before closing a file descriptor
[mplayer/glamo.git] / loader / dshow / outputpin.h
blob111ea17a56a3ad0cb9c07faa12228b35b2616caf
1 #ifndef MPLAYER_OUTPUTPIN_H
2 #define MPLAYER_OUTPUTPIN_H
4 /* "output pin" - the one that connects to output of filter. */
6 #include "allocator.h"
8 typedef struct COutputMemPin COutputMemPin;
9 typedef struct COutputPin COutputPin;
11 /**
12 Callback routine for copying samples from pin into filter
13 \param pUserData pointer to user's data
14 \param sample IMediaSample
16 typedef HRESULT STDCALL (*SAMPLEPROC)(void* pUserData,IMediaSample*sample);
18 struct COutputPin
20 IPin_vt* vt;
21 DECLARE_IUNKNOWN();
22 COutputMemPin* mempin;
23 AM_MEDIA_TYPE type;
24 IPin* remote;
25 SAMPLEPROC SampleProc;
26 void* pUserData;
27 void ( *SetNewFormat )(COutputPin*, const AM_MEDIA_TYPE* a);
30 COutputPin* COutputPinCreate(const AM_MEDIA_TYPE* amt,SAMPLEPROC SampleProc,void* pUserData);
32 #endif /* MPLAYER_OUTPUTPIN_H */