IStreamSample::GetMediaStream

This method retrieves a pointer to the media stream object that created the current sample.

HRESULT GetMediaStream(
  IMediaStream** ppMediaStream
);

Parameters

  • ppMediaStream
    [in] Address of a pointer to an IMediaStream interface that will point to the media stream that created the current sample.

Return Values

Returns S_OK if successful or E_POINTER if ppMediaStream is invalid.

Remarks

If successful, this method increments the reference count of the media stream specified by ppMediaStream.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements. See Setting Up the Build Environment for more information.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.

See Also

IStreamSample Interface

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.