10 Aug
2023
10 Aug
'23
7:41 a.m.
Rémi Bernon (@rbernon) commented about dlls/winegstreamer/media_sink.c:
+ HRESULT hr; + + LIST_FOR_EACH_ENTRY(stream_sink, &media_sink->stream_sinks, struct stream_sink, entry) + { + if (FAILED(hr = IMFMediaEventQueue_QueueEventParamVar(stream_sink->event_queue, type, &GUID_NULL, S_OK, NULL))) + return hr; + } + + return S_OK; +} + +static HRESULT media_sink_start(struct media_sink *media_sink) +{ + HRESULT hr; + + EnterCriticalSection(&media_sink->cs); As these are called from the callback Invoke which already enters the CS, I think you could assume it's entered already?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3528#note_41869