player: use input instead of output format for spdif check

This check disables the display-sync resample method. If the filters
convert PCM to AC3, we can still insert a filter to change speed. This
is because filters are inserted at the beginning of the filter chain.
This commit is contained in:
wm4 2015-11-04 21:38:01 +01:00
parent 3108a3a001
commit 179d7317e7
1 changed files with 1 additions and 1 deletions

View File

@ -870,7 +870,7 @@ fail:
static bool using_spdif_passthrough(struct MPContext *mpctx)
{
if (mpctx->d_audio && mpctx->d_audio->afilter)
return !af_fmt_is_pcm(mpctx->d_audio->afilter->output.format);
return !af_fmt_is_pcm(mpctx->d_audio->afilter->input.format);
return false;
}