Microsoft DirectX 8.1 (C++) |
The QueryAccept method determines whether the pin accepts a specified media type. This method implements the IPin::QueryAccept method.
Syntax
HRESULT QueryAccept(
const AM_MEDIA_TYPE *pmt
);
Parameters
pmt
Pointer to an AM_MEDIA_TYPE structure that specifies the media type.
Return Value
Returns S_TRUE if the media type is acceptable. Otherwise, returns S_FALSE.
Remarks
In the base class, this method delegates to the CBasePin::CheckMediaType method. If CheckMediaType fails, QueryAccept returns S_FALSE.
This method does not hold the pin's critical section (CBasePin::m_pLock). If your derived class dynamically modifies the set of acceptable media types, you should override this method to hold the critical section.
See Also