-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…1403) Refer to the original PR: #1399 `SbMediaGetAudioOutputCount()` was hard coded to return 1. This worked when `SbMediaGetAudioConfiguration()` was hard coded to return HDMI, and breaks 5.1 playbacks on some devices after `SbMediaGetAudioConfiguration()` is refined to return configurations for all audio outputs (including non-HDMI devices) in the system. For example, when the first output is non-HDMI stereo, and the second output is HDMI with 5.1 support, the second output won't be checked in `IsAudioOutputSupported()` because `SbMediaGetAudioOutputCount()` returns 1, and 5.1 streams will be incorrectly rejected. Now `SbMediaGetAudioOutputCount()` tentatively returns 16 on Android TV, and `IsAudioOutputSupported()` will break the loop when `SbMediaGetAudioConfiguration()` returns false. This minimizes the changes required while still allows 5.1 playbacks. Follow up changes should be made to remove `SbMediaGetAudioOutputCount()` completely once this is verified on all platforms. b/284140486 b/297426689 Co-authored-by: xiaomings <[email protected]>
- Loading branch information
1 parent
834346a
commit b6e23f7
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters