Commit 71e9455b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

quartz: Add missing lock releases on some code paths (Smatch).

parent 33f270af
......@@ -223,6 +223,7 @@ static HRESULT WINAPI Parser_Stop(IBaseFilter * iface)
if (This->state == State_Stopped)
{
LeaveCriticalSection(&This->csFilter);
LeaveCriticalSection(&pin->thread_lock);
return S_OK;
}
This->state = State_Stopped;
......@@ -248,6 +249,7 @@ static HRESULT WINAPI Parser_Pause(IBaseFilter * iface)
if (This->state == State_Paused)
{
LeaveCriticalSection(&This->csFilter);
LeaveCriticalSection(&pin->thread_lock);
return S_OK;
}
......@@ -284,6 +286,7 @@ static HRESULT WINAPI Parser_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
if (This->state == State_Running)
{
LeaveCriticalSection(&This->csFilter);
LeaveCriticalSection(&pin->thread_lock);
return S_OK;
}
......
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