[PATCH 1/5] quartz: Implement AsyncReader_FindPin
Maarten Lankhorst
m.b.lankhorst at gmail.com
Wed Dec 1 06:14:57 CST 2010
---
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 =
--
1.7.1
More information about the wine-patches
mailing list