From 179d7317e7e0e7f824439a47c0bab72b38535de2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 4 Nov 2015 21:38:01 +0100 Subject: 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. --- player/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/video.c b/player/video.c index 540b27f4c4..d09cf3800a 100644 --- a/player/video.c +++ b/player/video.c @@ -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; } -- cgit v1.2.3