mirror of
https://github.com/mpv-player/mpv
synced 2025-01-04 22:20:22 +00:00
ao_coreaudio: print an error when channel mapping fails
This commit is contained in:
parent
b46ffaec7c
commit
eb9d7d5c78
@ -317,8 +317,12 @@ static int init(struct ao *ao)
|
||||
// bitmap from the hardware, default to waveext...
|
||||
mp_chmap_sel_add_waveext(&chmap_sel);
|
||||
|
||||
if (!ao_chmap_sel_adjust(ao, &chmap_sel, &ao->channels))
|
||||
if (!ao_chmap_sel_adjust(ao, &chmap_sel, &ao->channels)) {
|
||||
MP_ERR(ao, "could not select a suitable channel map among the "
|
||||
"hardware supported ones. Make sure to configure your "
|
||||
"output device correctly in 'Audio MIDI Setup.app'\n");
|
||||
goto coreaudio_error;
|
||||
}
|
||||
|
||||
} // closes if (!supports_digital)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user