mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 04:45:33 +00:00
ao_coraudio: reject all non-PCM formats
Currently this is equivalent. On the other hand, all audio code should reject formats that is not in a category known to it.
This commit is contained in:
parent
74e2c8a6ef
commit
65e3657bc4
@ -151,7 +151,7 @@ static int init(struct ao *ao)
|
||||
{
|
||||
struct priv *p = ao->priv;
|
||||
|
||||
if (af_fmt_is_spdif(ao->format)) {
|
||||
if (!af_fmt_is_pcm(ao->format)) {
|
||||
MP_WARN(ao, "detected IEC61937, redirecting to coreaudio_exclusive\n");
|
||||
ao->redirect = "coreaudio_exclusive";
|
||||
return CONTROL_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user