Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SoundSourceM4A: Reconfigure decoder after channel config errors #2850

Merged
merged 20 commits into from
Jun 13, 2020
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add comment about "potentially" discontinuous decoding
  • Loading branch information
uklotzde committed Jun 13, 2020
commit 7ec1dbff9ff523e99f8675ee7ae2269589150c7b
4 changes: 4 additions & 0 deletions src/sources/soundsourcem4a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,10 @@ ReadableSampleFrames SoundSourceM4A::readSampleFramesClamped(
<< decFrameInfo.error
<< m_pFaad->GetErrorMessage(decFrameInfo.error)
<< getUrlString();
// Assumption: All samples from the preceding blocks have been
// decoded and consumed before decoding continues with the new,
// reopened decoder. Otherwise the decoded stream of samples
// might be discontinuous, but we can't do anything about it.
retryAfterReopeningDecoder = reopenDecoder();
daschuer marked this conversation as resolved.
Show resolved Hide resolved
// If reopening the decoder failed retrying the same sample
// block with the same decoder instance will fail again. In
Expand Down