Maarten Lankhorst : quartz: Implement AsyncReader_FindPin.

Alexandre Julliard julliard at winehq.org
Wed Dec 1 12:56:47 CST 2010


Module: wine
Branch: master
Commit: 945793722d083185d15101f6b87d466575e3ac8c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=945793722d083185d15101f6b87d466575e3ac8c

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Wed Dec  1 13:14:57 2010 +0100

quartz: Implement AsyncReader_FindPin.

---

 dlls/quartz/filesource.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/quartz/filesource.c b/dlls/quartz/filesource.c
index 6a59857..d458144 100644
--- a/dlls/quartz/filesource.c
+++ b/dlls/quartz/filesource.c
@@ -489,9 +489,21 @@ static HRESULT WINAPI AsyncReader_Run(IBaseFilter * iface, REFERENCE_TIME tStart
 
 static HRESULT WINAPI AsyncReader_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin)
 {
-    FIXME("(%s, %p)\n", debugstr_w(Id), ppPin);
+    AsyncReader *This = (AsyncReader *)iface;
+    TRACE("(%s, %p)\n", debugstr_w(Id), ppPin);
+
+    if (!Id || !ppPin)
+        return E_POINTER;
 
-    return E_NOTIMPL;
+    if (strcmpW(Id, wszOutputPinName))
+    {
+        *ppPin = NULL;
+        return VFW_E_NOT_FOUND;
+    }
+
+    *ppPin = (IPin*)This->pOutputPin;
+    IUnknown_AddRef(*ppPin);
+    return S_OK;
 }
 
 static const IBaseFilterVtbl AsyncReader_Vtbl =




More information about the wine-cvs mailing list