Share via


IMemInputPin::ReceiveMultiple

 
Microsoft DirectShow 9.0

IMemInputPin::ReceiveMultiple

The ReceiveMultiple method receives multiple samples in the stream.

Syntax

  HRESULT ReceiveMultiple(
  IMediaSample **pSamples,
  long nSamples,
  long *nSamplesProcessed
);

Parameters

pSamples

[in] Address of an array of IMediaSample interface pointers, of size nSamples.

nSamples

[in] Number of samples to process.

nSamplesProcessed

[out] Pointer to a variable that receives the number of samples that were processed.

Return Values

Returns an HRESULT value. Possible values include those shown in the following table.

Return code Description
S_OK Success.
S_FALSE Pin is currently flushing; sample was rejected.
E_POINTER NULL pointer argument.
VFW_E_INVALIDMEDIATYPE Invalid media type.
VFW_E_RUNTIME_ERROR A run-time error occurred.
VFW_E_WRONG_STATE The pin is stopped.

Remarks

This method behaves like the IMemInputPin::Receive method, but receives an array of samples.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also