Commit 2686550a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

evr/sample: Use proper locking method for SetAllocator().

parent 5aa05728
......@@ -1446,8 +1446,7 @@ static HRESULT WINAPI tracked_video_sample_SetAllocator(IMFTrackedSample *iface,
TRACE("%p, %p, %p.\n", iface, sample_allocator, state);
IMFSample_LockStore(sample->sample);
EnterCriticalSection(&sample->cs);
if (sample->tracked_result)
hr = MF_E_NOTACCEPTING;
else
......@@ -1464,8 +1463,7 @@ static HRESULT WINAPI tracked_video_sample_SetAllocator(IMFTrackedSample *iface,
}
}
}
IMFSample_UnlockStore(sample->sample);
LeaveCriticalSection(&sample->cs);
return hr;
}
......
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