summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-04 21:38:01 +0100
committerwm4 <wm4@nowhere>2015-11-04 21:49:54 +0100
commit179d7317e7e0e7f824439a47c0bab72b38535de2 (patch)
tree68de4ecd773f32a39fb35c2d265c829a1dc679c4 /player
parent3108a3a0019a7c39c490413aa92ceea9e25a295f (diff)
downloadmpv-179d7317e7e0e7f824439a47c0bab72b38535de2.tar.bz2
mpv-179d7317e7e0e7f824439a47c0bab72b38535de2.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
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;
}