1 //------------------------------------------------------------------------------
4 // Desc: DirectShow base classes.
6 // Copyright (c) 1992-2002 Microsoft Corporation. All rights reserved.
7 //------------------------------------------------------------------------------
13 // Simple rendered input pin
15 // NOTE if your filter queues stuff before rendering then it may not be
16 // appropriate to use this class
18 // In that case queue the end of stream condition until the last sample
19 // is actually rendered and flush the condition appropriately
21 class CRenderedInputPin
: public CBaseInputPin
25 CRenderedInputPin(TCHAR
*pObjectName
,
31 CRenderedInputPin(CHAR
*pObjectName
,
38 // Override methods to track end of stream state
39 STDMETHODIMP
EndOfStream();
40 STDMETHODIMP
EndFlush();
43 HRESULT
Run(REFERENCE_TIME tStart
);
47 // Member variables to track state
48 BOOL m_bAtEndOfStream
; // Set by EndOfStream
49 BOOL m_bCompleteNotified
; // Set when we notify for EC_COMPLETE
52 void DoCompleteHandling();