Module: wine Branch: master Commit: db82997560b753c3c30e29c85ef1e7bfb609509b URL: http://source.winehq.org/git/wine.git/?a=commit;h=db82997560b753c3c30e29c85e...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Aug 15 11:45:21 2012 +0200
strmbase: Use proper helpers for iface calls.
---
dlls/strmbase/outputqueue.c | 2 +- dlls/strmbase/qualitycontrol.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/strmbase/outputqueue.c b/dlls/strmbase/outputqueue.c index 3656d49..cbcd964 100644 --- a/dlls/strmbase/outputqueue.c +++ b/dlls/strmbase/outputqueue.c @@ -275,7 +275,7 @@ DWORD WINAPI OutputQueueImpl_ThreadProc(OutputQueue *pOutputQueue) IMemInputPin_Release(pOutputQueue->pInputPin->pMemInputPin); } for (i = 0; i < nSamples; i++) - IUnknown_Release(ppSamples[i]); + IMediaSample_Release(ppSamples[i]); HeapFree(GetProcessHeap(),0,ppSamples);
/* Process Non-Samples */ diff --git a/dlls/strmbase/qualitycontrol.c b/dlls/strmbase/qualitycontrol.c index f6c9ea7..f96ed64 100644 --- a/dlls/strmbase/qualitycontrol.c +++ b/dlls/strmbase/qualitycontrol.c @@ -56,17 +56,17 @@ HRESULT QualityControlImpl_Destroy(QualityControlImpl *This)
HRESULT WINAPI QualityControlImpl_QueryInterface(IQualityControl *iface, REFIID riid, void **ppv) { QualityControlImpl *This = (QualityControlImpl*)iface; - return IUnknown_QueryInterface(This->self, riid, ppv); + return IBaseFilter_QueryInterface(This->self, riid, ppv); }
ULONG WINAPI QualityControlImpl_AddRef(IQualityControl *iface) { QualityControlImpl *This = (QualityControlImpl*)iface; - return IUnknown_AddRef(This->self); + return IBaseFilter_AddRef(This->self); }
ULONG WINAPI QualityControlImpl_Release(IQualityControl *iface) { QualityControlImpl *This = (QualityControlImpl*)iface; - return IUnknown_Release(This->self); + return IBaseFilter_Release(This->self); }
HRESULT WINAPI QualityControlImpl_Notify(IQualityControl *iface, IBaseFilter *sender, Quality qm) { @@ -79,7 +79,7 @@ HRESULT WINAPI QualityControlImpl_Notify(IQualityControl *iface, IBaseFilter *se IPin_ConnectedTo(This->input, &to); if (to) { IQualityControl *qc = NULL; - IUnknown_QueryInterface(to, &IID_IQualityControl, (void**)&qc); + IPin_QueryInterface(to, &IID_IQualityControl, (void**)&qc); if (qc) { hr = IQualityControl_Notify(qc, This->self, qm); IQualityControl_Release(qc);