strmbase: Get rid of the unused "lock" parameter to BaseControlWindow_Init().
We don't use a lock, and while it's true we probably should be, we already have access to one. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
229a8dfbcd
commit
3f7fdcfd63
|
@ -846,9 +846,9 @@ HRESULT VideoRenderer_create(IUnknown *outer, void **out)
|
|||
if (FAILED(hr))
|
||||
goto fail;
|
||||
|
||||
hr = BaseControlWindow_Init(&pVideoRenderer->baseControlWindow, &IVideoWindow_VTable,
|
||||
&pVideoRenderer->renderer.filter, &pVideoRenderer->renderer.filter.csFilter,
|
||||
&pVideoRenderer->renderer.sink.pin, &renderer_BaseWindowFuncTable);
|
||||
hr = strmbase_window_init(&pVideoRenderer->baseControlWindow, &IVideoWindow_VTable,
|
||||
&pVideoRenderer->renderer.filter, &pVideoRenderer->renderer.sink.pin,
|
||||
&renderer_BaseWindowFuncTable);
|
||||
if (FAILED(hr))
|
||||
goto fail;
|
||||
|
||||
|
|
|
@ -2251,9 +2251,8 @@ static HRESULT vmr_create(IUnknown *outer, void **out, const CLSID *clsid)
|
|||
if (FAILED(hr))
|
||||
goto fail;
|
||||
|
||||
hr = BaseControlWindow_Init(&pVMR->baseControlWindow, &IVideoWindow_VTable,
|
||||
&pVMR->renderer.filter, &pVMR->renderer.filter.csFilter,
|
||||
&pVMR->renderer.sink.pin, &renderer_BaseWindowFuncTable);
|
||||
hr = strmbase_window_init(&pVMR->baseControlWindow, &IVideoWindow_VTable,
|
||||
&pVMR->renderer.filter, &pVMR->renderer.sink.pin, &renderer_BaseWindowFuncTable);
|
||||
if (FAILED(hr))
|
||||
goto fail;
|
||||
|
||||
|
|
|
@ -144,9 +144,9 @@ HRESULT WINAPI BaseWindowImpl_DoneWithWindow(BaseWindow *This)
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT WINAPI BaseControlWindow_Init(BaseControlWindow *pControlWindow,
|
||||
HRESULT WINAPI strmbase_window_init(BaseControlWindow *pControlWindow,
|
||||
const IVideoWindowVtbl *lpVtbl, struct strmbase_filter *owner,
|
||||
CRITICAL_SECTION *lock, struct strmbase_pin *pPin, const BaseWindowFuncTable *pFuncsTable)
|
||||
struct strmbase_pin *pPin, const BaseWindowFuncTable *pFuncsTable)
|
||||
{
|
||||
HRESULT hr;
|
||||
|
||||
|
@ -158,7 +158,6 @@ HRESULT WINAPI BaseControlWindow_Init(BaseControlWindow *pControlWindow,
|
|||
pControlWindow->hwndDrain = NULL;
|
||||
pControlWindow->hwndOwner = NULL;
|
||||
pControlWindow->pFilter = owner;
|
||||
pControlWindow->pInterfaceLock = lock;
|
||||
pControlWindow->pPin = pPin;
|
||||
}
|
||||
return hr;
|
||||
|
|
|
@ -403,12 +403,11 @@ typedef struct tagBaseControlWindow
|
|||
HWND hwndDrain;
|
||||
HWND hwndOwner;
|
||||
struct strmbase_filter *pFilter;
|
||||
CRITICAL_SECTION* pInterfaceLock;
|
||||
struct strmbase_pin *pPin;
|
||||
} BaseControlWindow;
|
||||
|
||||
HRESULT WINAPI BaseControlWindow_Init(BaseControlWindow *window, const IVideoWindowVtbl *vtbl,
|
||||
struct strmbase_filter *filter, CRITICAL_SECTION *lock, struct strmbase_pin *pin, const BaseWindowFuncTable *ops);
|
||||
HRESULT WINAPI strmbase_window_init(BaseControlWindow *window, const IVideoWindowVtbl *vtbl,
|
||||
struct strmbase_filter *filter, struct strmbase_pin *pin, const BaseWindowFuncTable *func_table);
|
||||
HRESULT WINAPI BaseControlWindow_Destroy(BaseControlWindow *pControlWindow);
|
||||
|
||||
BOOL WINAPI BaseControlWindowImpl_PossiblyEatMessage(BaseWindow *This, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
|
Loading…
Reference in New Issue