quartz/videorenderer: Get rid of CreateRenderingSubsystem().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b546ac39f3
commit
229a8dfbcd
|
@ -82,21 +82,6 @@ static inline VideoRendererImpl *impl_from_BaseControlVideo(BaseControlVideo *if
|
||||||
return CONTAINING_RECORD(iface, VideoRendererImpl, baseControlVideo);
|
return CONTAINING_RECORD(iface, VideoRendererImpl, baseControlVideo);
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL CreateRenderingSubsystem(VideoRendererImpl* This)
|
|
||||||
{
|
|
||||||
This->hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
|
||||||
if (!This->hEvent)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if (FAILED(BaseWindowImpl_PrepareWindow(&This->baseControlWindow.baseWindow)))
|
|
||||||
{
|
|
||||||
CloseHandle(This->hEvent);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void VideoRenderer_AutoShowWindow(VideoRendererImpl *This)
|
static void VideoRenderer_AutoShowWindow(VideoRendererImpl *This)
|
||||||
{
|
{
|
||||||
if (!This->init && (!This->WindowPos.right || !This->WindowPos.top))
|
if (!This->init && (!This->WindowPos.right || !This->WindowPos.top))
|
||||||
|
@ -873,8 +858,11 @@ HRESULT VideoRenderer_create(IUnknown *outer, void **out)
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (!CreateRenderingSubsystem(pVideoRenderer)) {
|
pVideoRenderer->hEvent = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||||
hr = E_FAIL;
|
|
||||||
|
if (FAILED(hr = BaseWindowImpl_PrepareWindow(&pVideoRenderer->baseControlWindow.baseWindow)))
|
||||||
|
{
|
||||||
|
CloseHandle(pVideoRenderer->hEvent);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue