Commit 229a8dfb authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/videorenderer: Get rid of CreateRenderingSubsystem().

parent b546ac39
...@@ -82,21 +82,6 @@ static inline VideoRendererImpl *impl_from_BaseControlVideo(BaseControlVideo *if ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment