From 888b98975fdb7034faf146029da296bb06f4c8a0 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Tue, 10 Jun 2008 16:44:26 +0200 Subject: [PATCH] qcap: Capture pin should have an IAMStreamConfig. I originally implemented it on the filter but that is wrong, I will have to fix that at a later date. It's because of fnCaptureGraphBuilder2_FindInterface being a stub. --- dlls/qcap/vfwcapture.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c index 5e46335c5f1..fa4754fd603 100644 --- a/dlls/qcap/vfwcapture.c +++ b/dlls/qcap/vfwcapture.c @@ -80,6 +80,7 @@ typedef struct VfwPinImpl { OutputPin pin; Capture *driver_info; + VfwCapture *parent; const IKsPropertySetVtbl * KSP_VT; } VfwPinImpl; @@ -617,6 +618,7 @@ PPB_Load( IPersistPropertyBag * iface, IPropertyBag *pPropBag, { pin = (VfwPinImpl *)This->pOutputPin; pin->driver_info = This->driver_info; + pin->parent = This; This->init = TRUE; hr = S_OK; } @@ -783,6 +785,8 @@ static HRESULT WINAPI VfwPin_QueryInterface(IPin * iface, REFIID riid, LPVOID * *ppv = (LPVOID)This; else if (IsEqualIID(riid, &IID_IKsPropertySet)) *ppv = (LPVOID)&(This->KSP_VT); + else if (IsEqualIID(riid, &IID_IAMStreamConfig)) + return IUnknown_QueryInterface((IUnknown *)This->parent, riid, ppv); if (*ppv) {