The Notify method is called by the pin for each buffer that is delivered during streaming.
HRESULT Notify( INSSBuffer3 *pNSSBuffer3, IPin *pPin, REFERENCE_TIME *prtStart, REFERENCE_TIME *prtEnd );
Pointer to the INSSBuffer3 interface exposed on the media sample.
Pointer to the pin associated with the media stream that the sample belongs to.
Start time of the sample.
End time of the sample.
No particular return value is specified. The calling pin ignores the HRESULT.
This method enables an application to examine and act on information in the media buffer before the buffer contents are processed. The application is responsible for knowing the media type on the pin. This information can be obtained by first getting the stream information from the profile and then calling IConfigAsfWriter2::StreamNumFromPin method to determine which pin is associated with each stream.