Anton Baskanov (@baskanov) commented about dlls/amstream/ddrawstream.c:
DWORD flags)
{ struct ddraw_stream *stream = impl_from_IMemAllocator(iface);
- HRESULT hr;
- return IMemAllocator_GetBuffer(stream->private_allocator, buf, start_time, end_time, flags);
- EnterCriticalSection(&stream->cs);
No need to enter CS here, the allocator is thread safe and the sample pointer has not been passed to anyone yet.