strmbase: Fix issues with new quality control implementation in TransformFilter.

This commit is contained in:
Aric Stewart 2012-04-03 14:27:47 -05:00 committed by Alexandre Julliard
parent 9940756d21
commit 109ec4bbab
1 changed files with 2 additions and 1 deletions

View File

@ -235,6 +235,7 @@ static HRESULT TransformFilter_Init(const IBaseFilterVtbl *pVtbl, const CLSID* p
ERR("Cannot create output pin (%x)\n", hr); ERR("Cannot create output pin (%x)\n", hr);
else { else {
QualityControlImpl_Create( pTransformFilter->ppPins[0], &pTransformFilter->filter.IBaseFilter_iface, &pTransformFilter->qcimpl); QualityControlImpl_Create( pTransformFilter->ppPins[0], &pTransformFilter->filter.IBaseFilter_iface, &pTransformFilter->qcimpl);
pTransformFilter->qcimpl->IQualityControl_iface.lpVtbl = &TransformFilter_QualityControl_Vtbl;
} }
} }
if (FAILED(hr)) if (FAILED(hr))
@ -404,7 +405,7 @@ HRESULT WINAPI TransformFilterImpl_Run(IBaseFilter * iface, REFERENCE_TIME tStar
HRESULT WINAPI TransformFilterImpl_Notify(TransformFilter *iface, IBaseFilter *sender, Quality qm) HRESULT WINAPI TransformFilterImpl_Notify(TransformFilter *iface, IBaseFilter *sender, Quality qm)
{ {
return QualityControlImpl_Notify((IQualityControl*)&iface->qcimpl, sender, qm); return QualityControlImpl_Notify((IQualityControl*)iface->qcimpl, sender, qm);
} }
/** IBaseFilter implementation **/ /** IBaseFilter implementation **/