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:
wm4 2015-07-03 19:05:27 +02:00
parent 74e2c8a6ef
commit 65e3657bc4
1 changed files with 1 additions and 1 deletions

View File

@ -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;