strmbase: Initialize QualityControl struct on allocation.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0025649714
commit
97fea6d80e
|
@ -43,7 +43,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl
|
||||||
{
|
{
|
||||||
QualityControlImpl *This;
|
QualityControlImpl *This;
|
||||||
TRACE("%p, %p, %p\n", input, self, ppv);
|
TRACE("%p, %p, %p\n", input, self, ppv);
|
||||||
*ppv = HeapAlloc(GetProcessHeap(),0,sizeof(QualityControlImpl));
|
*ppv = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(QualityControlImpl));
|
||||||
if (!*ppv)
|
if (!*ppv)
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
This = *ppv;
|
This = *ppv;
|
||||||
|
@ -51,6 +51,7 @@ HRESULT QualityControlImpl_Create(IPin *input, IBaseFilter *self, QualityControl
|
||||||
This->self = self;
|
This->self = self;
|
||||||
This->tonotify = NULL;
|
This->tonotify = NULL;
|
||||||
This->clock = NULL;
|
This->clock = NULL;
|
||||||
|
This->current_rstart = This->current_rstop = -1;
|
||||||
TRACE("-> %p\n", This);
|
TRACE("-> %p\n", This);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue