mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 21:12:23 +00:00
ao_coreaudio: fix regression in digital stream selection
The condition was checked wrongly on asbd which is the input format description. This lead to the condition always being true, thus selecting lpcm streams for digital input.
This commit is contained in:
parent
e61102e637
commit
9652245ef0
@ -504,7 +504,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
|
||||
d->stream_idx = i;
|
||||
|
||||
for (int j = 0; j < formats_n; j++)
|
||||
if (AudioFormatIsDigital(asbd)) {
|
||||
if (AudioFormatIsDigital(formats[j].mFormat)) {
|
||||
// select the digital format that has exactly the same
|
||||
// samplerate. If an exact match cannot be found, select
|
||||
// the format with highest samplerate as backup.
|
||||
|
Loading…
Reference in New Issue
Block a user