Share via

[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.

Developer technologies | Universal Windows Platform (UWP)

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.