CMediaSample::CMediaSample

 
Microsoft DirectShow 9.0

CMediaSample::CMediaSample

Constructor method.

Syntax

  CMediaSample(
    TCHAR *pName,
    CBaseAllocator *pAllocator,
    HRESULT *phr,
    LPBYTE pBuffer = NULL,
    LONG length = 0
); 

Parameters

pName

Ignored.

pAllocator

Pointer to the CBaseAllocator object that created this sample.

phr

Ignored.

pBuffer

Pointer to a memory buffer allocated by the caller, of size length.

length

Length of the memory buffer.

Remarks

The base class does not modify the HRESULT value passed in the phr parameter.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also