Compartir a través de


IMediaDet::get_StreamMediaType

 
Microsoft DirectShow 9.0

IMediaDet::get_StreamMediaType

The get_StreamMediaType method retrieves the media type of the current stream. All video streams are converted to VIDEOINFOHEADER types, and all audio streams are converted to WAVEFORMATEX types.

Syntax

  HRESULT get_StreamMediaType(
    AM_MEDIA_TYPE *pVal
);

Parameters

pVal

[out, retval] Pointer to an AM_MEDIA_TYPE structure that is filled with the media type.

Return Value

Returns an HRESULT value. Possible values include the following:

Value Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER NULL pointer argument.

Remarks

Before calling this method, set the file name and stream by calling IMediaDet::put_Filename and IMediaDet::put_CurrentStream.

If the media detector is in bitmap grab mode, this method returns E_INVALIDARG. For more information, see IMediaDet::EnterBitmapGrabMode.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also