mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 00:46:03 +00:00
strmbase: Zero-initialize the BaseRenderer structure in strmbase_renderer_init().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1317102f6c
commit
0aa48ff150
1 changed files with 1 additions and 1 deletions
|
@ -238,6 +238,7 @@ HRESULT WINAPI strmbase_renderer_init(BaseRenderer *filter, const IBaseFilterVtb
|
|||
PIN_INFO piInput;
|
||||
HRESULT hr;
|
||||
|
||||
memset(filter, 0, sizeof(*filter));
|
||||
strmbase_filter_init(&filter->filter, vtbl, outer, clsid, &RendererBaseFilterFuncTable);
|
||||
|
||||
filter->pFuncsTable = pBaseFuncsTable;
|
||||
|
@ -264,7 +265,6 @@ HRESULT WINAPI strmbase_renderer_init(BaseRenderer *filter, const IBaseFilterVtb
|
|||
filter->state_event = CreateEventW(NULL, TRUE, TRUE, NULL);
|
||||
filter->advise_event = CreateEventW(NULL, FALSE, FALSE, NULL);
|
||||
filter->flush_event = CreateEventW(NULL, TRUE, TRUE, NULL);
|
||||
filter->pMediaSample = NULL;
|
||||
|
||||
QualityControlImpl_Create(&filter->sink.pin.IPin_iface, &filter->filter.IBaseFilter_iface, &filter->qcimpl);
|
||||
filter->qcimpl->IQualityControl_iface.lpVtbl = &Renderer_QualityControl_Vtbl;
|
||||
|
|
Loading…
Reference in a new issue