IMFASFMultiplexer::GetNextPacket method

Retrieves the next output ASF packet from the multiplexer.

Syntax

HRESULT GetNextPacket(
  DWORD     *pdwStatusFlags,
  IMFSample **ppIPacket
);

Parameters

pdwStatusFlags

Receives zero or more status flags. If more than one packet is waiting, the method sets the ASF_STATUSFLAGS_INCOMPLETE flag.

ppIPacket

Receives a pointer to the IMFSample interface of the first output sample of the data packet. The caller must release the interface.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

The client needs to call this method, ideally after every call to IMFASFMultiplexer::ProcessSample, to get the output ASF packets. Call this method in a loop as long as the ASF_STATUSFLAGS_INCOMPLETE flag is received.

If no packets are ready, the method returns S_OK but does not return a sample in ppIPacket.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mfuuid.lib

See Also

Generating New ASF Data Packets

IMFASFMultiplexer

IMFSample