Maarten Lankhorst : qcap: Capture pin should have an IAMStreamConfig.
Alexandre Julliard
julliard at winehq.org
Thu Jun 19 06:37:33 CDT 2008
Module: wine
Branch: master
Commit: 888b98975fdb7034faf146029da296bb06f4c8a0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=888b98975fdb7034faf146029da296bb06f4c8a0
Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Tue Jun 10 16:44:26 2008 +0200
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 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c
index 5e46335..fa4754f 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)
{
More information about the wine-cvs
mailing list