CBasePin::SetMediaType
A version of this page is also available for
4/8/2010
Sets the m_mt data member to the established media type.
Syntax
virtual HRESULT SetMediaType(
const CMediaType* pmt
);
Parameters
- pmt
Pointer to a media type object that was previously agreed on.
Return Value
Returns NOERROR by default implementation.
The overriding member functions return an HRESULT value.
Remarks
This member function is called to establish the format for a pin connection.
The CBasePin::CheckMediaType member function will have been called to check the connection format and, if it did not return an error value, this virtual member function will be called.
The default implementation sets the m_mt protected data member to the value passed to this member function. Override to inform the derived class when the media type is set.
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |