Commit ac10f3de authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Remove unused "ThreadSignal" event.

parent bf891f34
...@@ -738,7 +738,6 @@ static HRESULT WINAPI DSoundRender_Pause(IBaseFilter * iface) ...@@ -738,7 +738,6 @@ static HRESULT WINAPI DSoundRender_Pause(IBaseFilter * iface)
ResetEvent(This->blocked); ResetEvent(This->blocked);
ResetEvent(This->renderer.RenderEvent); ResetEvent(This->renderer.RenderEvent);
} }
ResetEvent(This->renderer.ThreadSignal);
LeaveCriticalSection(&This->renderer.csRenderLock); LeaveCriticalSection(&This->renderer.csRenderLock);
return hr; return hr;
......
...@@ -267,7 +267,6 @@ HRESULT WINAPI strmbase_renderer_init(BaseRenderer *filter, const IBaseFilterVtb ...@@ -267,7 +267,6 @@ HRESULT WINAPI strmbase_renderer_init(BaseRenderer *filter, const IBaseFilterVtb
InitializeCriticalSection(&filter->csRenderLock); InitializeCriticalSection(&filter->csRenderLock);
filter->csRenderLock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__": BaseRenderer.csRenderLock"); filter->csRenderLock.DebugInfo->Spare[0] = (DWORD_PTR)(__FILE__": BaseRenderer.csRenderLock");
filter->evComplete = CreateEventW(NULL, TRUE, TRUE, NULL); filter->evComplete = CreateEventW(NULL, TRUE, TRUE, NULL);
filter->ThreadSignal = CreateEventW(NULL, TRUE, TRUE, NULL);
filter->RenderEvent = CreateEventW(NULL, FALSE, FALSE, NULL); filter->RenderEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
filter->pMediaSample = NULL; filter->pMediaSample = NULL;
...@@ -292,7 +291,6 @@ void strmbase_renderer_cleanup(BaseRenderer *filter) ...@@ -292,7 +291,6 @@ void strmbase_renderer_cleanup(BaseRenderer *filter)
BaseRendererImpl_ClearPendingSample(filter); BaseRendererImpl_ClearPendingSample(filter);
CloseHandle(filter->evComplete); CloseHandle(filter->evComplete);
CloseHandle(filter->ThreadSignal);
CloseHandle(filter->RenderEvent); CloseHandle(filter->RenderEvent);
QualityControlImpl_Destroy(filter->qcimpl); QualityControlImpl_Destroy(filter->qcimpl);
strmbase_filter_cleanup(&filter->filter); strmbase_filter_cleanup(&filter->filter);
...@@ -404,7 +402,6 @@ HRESULT WINAPI BaseRendererImpl_Stop(IBaseFilter * iface) ...@@ -404,7 +402,6 @@ HRESULT WINAPI BaseRendererImpl_Stop(IBaseFilter * iface)
This->pFuncsTable->pfnOnStopStreaming(This); This->pFuncsTable->pfnOnStopStreaming(This);
This->filter.state = State_Stopped; This->filter.state = State_Stopped;
SetEvent(This->evComplete); SetEvent(This->evComplete);
SetEvent(This->ThreadSignal);
SetEvent(This->RenderEvent); SetEvent(This->RenderEvent);
} }
LeaveCriticalSection(&This->csRenderLock); LeaveCriticalSection(&This->csRenderLock);
...@@ -424,7 +421,6 @@ HRESULT WINAPI BaseRendererImpl_Run(IBaseFilter * iface, REFERENCE_TIME tStart) ...@@ -424,7 +421,6 @@ HRESULT WINAPI BaseRendererImpl_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
goto out; goto out;
SetEvent(This->evComplete); SetEvent(This->evComplete);
ResetEvent(This->ThreadSignal);
if (This->sink.pin.pConnectedTo) if (This->sink.pin.pConnectedTo)
{ {
...@@ -482,7 +478,6 @@ HRESULT WINAPI BaseRendererImpl_Pause(IBaseFilter * iface) ...@@ -482,7 +478,6 @@ HRESULT WINAPI BaseRendererImpl_Pause(IBaseFilter * iface)
This->filter.state = State_Paused; This->filter.state = State_Paused;
} }
} }
ResetEvent(This->ThreadSignal);
LeaveCriticalSection(&This->csRenderLock); LeaveCriticalSection(&This->csRenderLock);
return S_OK; return S_OK;
...@@ -545,7 +540,6 @@ HRESULT WINAPI BaseRendererImpl_BeginFlush(BaseRenderer* iface) ...@@ -545,7 +540,6 @@ HRESULT WINAPI BaseRendererImpl_BeginFlush(BaseRenderer* iface)
{ {
TRACE("(%p)\n", iface); TRACE("(%p)\n", iface);
BaseRendererImpl_ClearPendingSample(iface); BaseRendererImpl_ClearPendingSample(iface);
SetEvent(iface->ThreadSignal);
SetEvent(iface->RenderEvent); SetEvent(iface->RenderEvent);
return S_OK; return S_OK;
} }
...@@ -555,7 +549,6 @@ HRESULT WINAPI BaseRendererImpl_EndFlush(BaseRenderer* iface) ...@@ -555,7 +549,6 @@ HRESULT WINAPI BaseRendererImpl_EndFlush(BaseRenderer* iface)
TRACE("(%p)\n", iface); TRACE("(%p)\n", iface);
QualityControlRender_Start(iface->qcimpl, iface->filter.rtStreamStart); QualityControlRender_Start(iface->qcimpl, iface->filter.rtStreamStart);
RendererPosPassThru_ResetMediaTime(iface->pPosition); RendererPosPassThru_ResetMediaTime(iface->pPosition);
ResetEvent(iface->ThreadSignal);
ResetEvent(iface->RenderEvent); ResetEvent(iface->RenderEvent);
return S_OK; return S_OK;
} }
......
...@@ -541,7 +541,6 @@ typedef struct BaseRendererTag ...@@ -541,7 +541,6 @@ typedef struct BaseRendererTag
IUnknown *pPosition; IUnknown *pPosition;
CRITICAL_SECTION csRenderLock; CRITICAL_SECTION csRenderLock;
HANDLE evComplete; HANDLE evComplete;
HANDLE ThreadSignal;
HANDLE RenderEvent; HANDLE RenderEvent;
IMediaSample *pMediaSample; IMediaSample *pMediaSample;
......
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