Microsoft Windows CE 3.0  

CBasePin::SetMediaType

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.

Sets the m_mtdata member to the established media type.

virtual HRESULT SetMediaType(
const CMediaType *
pmt
);

Parameters

pmt
Pointer to a media type object that was previously agreed on.

Return Values

Returns NOERROR by default implementation. The overriding member functions return an HRESULTvalue.

Remarks

This member function is called to establish the format for a pin connection. The CBasePin::CheckMediaTypemember 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_mtprotected data member to the value passed to this member function. Override to inform the derived class when the media type is set.