diff options
author | wm4 <wm4@nowhere> | 2015-07-03 19:05:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-03 19:28:00 +0200 |
commit | 65e3657bc40dbe66c487063832aa2a84b1952101 (patch) | |
tree | b869398f5082449179913616f719457a8426f68e /audio | |
parent | 74e2c8a6ef84f7da3644c7cf4f124d4f4485bba3 (diff) | |
download | mpv-65e3657bc40dbe66c487063832aa2a84b1952101.tar.bz2 mpv-65e3657bc40dbe66c487063832aa2a84b1952101.tar.xz |
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.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_coreaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index 8fba7a944c..07ccd17468 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -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; |