Erich Hoover : quartz: Add support for EndOfStream in PullPin.
Alexandre Julliard
julliard at winehq.org
Mon Sep 12 11:43:01 CDT 2011
Module: wine
Branch: master
Commit: b7bc6dcfaeb1aa18c559d5e93b4163210d4d6f72
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b7bc6dcfaeb1aa18c559d5e93b4163210d4d6f72
Author: Erich Hoover <ehoover at mines.edu>
Date: Sun Sep 11 14:11:04 2011 -0600
quartz: Add support for EndOfStream in PullPin.
---
dlls/quartz/pin.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/dlls/quartz/pin.c b/dlls/quartz/pin.c
index 15d5f4b..500d7d3 100644
--- a/dlls/quartz/pin.c
+++ b/dlls/quartz/pin.c
@@ -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;
+
+ TRACE("(%p)->()\n", iface);
+
+ EnterCriticalSection(This->pin.pCritSec);
+ hr = SendFurther( iface, deliver_endofstream, NULL, NULL );
+ SetEvent(This->hEventStateChanged);
+ LeaveCriticalSection(This->pin.pCritSec);
- return SendFurther( iface, deliver_endofstream, NULL, NULL );
+ return hr;
}
HRESULT WINAPI PullPin_BeginFlush(IPin * iface)
More information about the wine-cvs
mailing list