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