Microsoft DirectX 9.0 |
The NotifyMediaType method notifies the CDrawImage object of the current media type.
Syntax
void NotifyMediaType(
CMediaType *pMediaType
);
Parameters
pMediaType
Pointer to a CMediaType object, or NULL to clear the media type.
Return Value
No return value.
Remarks
The owning filter should call this method whenever the media type changes. Typically this occurs when the pin first connects, and after a dynamic format change.
The CDrawImage object stores the pMediaType pointer in the m_pMediaType member variable. Therefore, if the caller needs to release the CMediaType object, it should update the CDrawImage object by calling this method again, either with a new pointer or with a NULL value. Otherwise, an error can occur when the CDrawImage object attempts to reference the old pointer.
See Also