Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method retrieves the media type that was set for an input stream, if any.

Syntax

HRESULT GetInputCurrentType(
  DWORD 
dwInputStreamIndex,
  DMO_MEDIA_TYPE* 
pmt
);

Parameters

dwInputStreamIndex

Zero-based index of an input stream on the DMO.

pmt

[out] Pointer to a DMO_MEDIA_TYPEstructure allocated by the caller. The method fills the structure with the media type.

Return Value

Returns an HRESULTvalue. Possible values include the following.

Value Description

S_OK

Success

DMO_E_INVALIDSTREAMINDEX

Invalid stream index

DMO_E_TYPE_NOT_SET

Media type was not set

E_OUTOFMEMORY

Insufficient memory

Remarks

The caller must set the media type for the stream before calling this method. To set the media type, call the IMediaObject::SetInputTypemethod.

If the method succeeds, call MoFreeMediaTypeto free the format block.

Requirements

Header dmo.h
Library Dmoguid.lib
Windows Embedded CE Windows CE .NET 4.1 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also