|Microsoft DirectX 9.0|
The NotifyMediaType method notifies the CDrawImage object of the current media type.
void NotifyMediaType( CMediaType *pMediaType );
Pointer to a CMediaType object, or NULL to clear the media type.
No return value.
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.