From 65e3657bc40dbe66c487063832aa2a84b1952101 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Jul 2015 19:05:27 +0200 Subject: 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. --- audio/out/ao_coreaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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; -- cgit v1.2.3