quartz: Add support for EndOfStream in PullPin.

This commit is contained in:
Erich Hoover 2011-09-11 14:11:04 -06:00 committed by Alexandre Julliard
parent 9f7ef3786a
commit b7bc6dcfae

View file

@ -726,9 +726,17 @@ HRESULT WINAPI PullPin_QueryAccept(IPin * iface, const AM_MEDIA_TYPE * pmt)
HRESULT WINAPI PullPin_EndOfStream(IPin * iface)
{
FIXME("(%p)->() stub\n", iface);
PullPin *This = (PullPin *)iface;
HRESULT hr = S_FALSE;
return SendFurther( iface, deliver_endofstream, NULL, NULL );
TRACE("(%p)->()\n", iface);
EnterCriticalSection(This->pin.pCritSec);
hr = SendFurther( iface, deliver_endofstream, NULL, NULL );
SetEvent(This->hEventStateChanged);
LeaveCriticalSection(This->pin.pCritSec);
return hr;
}
HRESULT WINAPI PullPin_BeginFlush(IPin * iface)