mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
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:
parent
3108a3a001
commit
179d7317e7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user