Commit db829975 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

strmbase: Use proper helpers for iface calls.

parent 223105b9
......@@ -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 */
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment