[Bug] Deadlocks in FLAC codec

Ivanich 306 Reputation points
2020-10-13T14:37:44.81+00:00

Hi!

I have UWP app where IMFSourceReader decodes audio stream. Users report that when they rewind FLAC audio it sometimes hangs and it happens only with this codec. I call reader's methods in serialized synchronous way, so calls to Reader->SetCurrentPosition(GUID_NULL, prop) and Reader->ReadSample(MF_SOURCE_READER_FIRST_AUDIO_STREAM, 0, 0, &dwFlags, NULL, &sample) are never called concurrently. In debugger I see that when player hangs, it stucks in ReadSample despite that previous call to SetCurrentPosition completes successfully.

I can send source code to reproduce this bug, but not on the public resource.

Universal Windows Platform (UWP)
{count} votes