Repository navigation
starboard: Reinitialize decoder on early config change - #13481
Conversation
|
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
911f2b8 to
8d4989b
Compare
d021be4 to
7934f8b
Compare
7934f8b to
eaba7af
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates AdaptiveAudioDecoder::Decode to teardown the audio decoder immediately if a configuration change is detected before the first input is written, avoiding waiting for an end-of-stream signal when there is nothing to drain. It also introduces a new test suite AdaptiveAudioDecoderResetTest in adaptive_audio_decoder_test.cc to verify decoder behavior and swapping during resets with both changing and identical configurations. There are no review comments, and I have no feedback to provide.
There was a problem hiding this comment.
Code Review
This pull request updates AdaptiveAudioDecoder::Decode to immediately tear down the audio decoder if a configuration change is detected before any input has been written since the last reset, avoiding unnecessary waiting on an end-of-stream drain. It also introduces comprehensive unit tests in adaptive_audio_decoder_test.cc to verify this behavior under different reset and configuration change scenarios. There are no review comments, and I have no feedback to provide.
…g change Refer to original PR: #13481 Update AdaptiveAudioDecoder to check if input has been written since the last reset. If a substantial change in audio stream information is detected before any samples are processed, the decoder is now immediately torn down and re-initialized. This avoids unnecessary flushing and EOS signaling when there is no data to drain. Unit tests have been added as well to verify behavior. Bug: 575560627 (cherry picked from commit 1509e08)
…g change Refer to original PR: #13481 Update AdaptiveAudioDecoder to check if input has been written since the last reset. If a substantial change in audio stream information is detected before any samples are processed, the decoder is now immediately torn down and re-initialized. This avoids unnecessary flushing and EOS signaling when there is no data to drain. Unit tests have been added as well to verify behavior. Bug: 575560627 (cherry picked from commit 1509e08)
…g change Refer to original PR: #13481 Update AdaptiveAudioDecoder to check if input has been written since the last reset. If a substantial change in audio stream information is detected before any samples are processed, the decoder is now immediately torn down and re-initialized. This avoids unnecessary flushing and EOS signaling when there is no data to drain. Unit tests have been added as well to verify behavior. Bug: 575560627 (cherry picked from commit 1509e08)
…g change Refer to original PR: #13481 Update AdaptiveAudioDecoder to check if input has been written since the last reset. If a substantial change in audio stream information is detected before any samples are processed, the decoder is now immediately torn down and re-initialized. This avoids unnecessary flushing and EOS signaling when there is no data to drain. Unit tests have been added as well to verify behavior. Bug: 575560627 (cherry picked from commit 1509e08)
Update AdaptiveAudioDecoder to check if input has been written since
the last reset. If a substantial change in audio stream information
is detected before any samples are processed, the decoder is now
immediately torn down and re-initialized. This avoids unnecessary
flushing and EOS signaling when there is no data to drain.
Unit tests have been added as well to verify behavior.
Bug: 575560627