From fef8b7984be5a6244612d346bd60d2badd4a2e63 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Jan 2016 22:10:15 +0100 Subject: audio: refactor: work towards unentangling audio decoding and filtering Similar to the video path. dec_audio.c now handles decoding only. It also looks very similar to dec_video.c, and actually contains some of the rewritten code from it. (A further goal might be unifying the decoders, I guess.) High potential for regressions. --- player/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index faa8a652bb..18a7ef53ec 100644 --- a/player/video.c +++ b/player/video.c @@ -889,8 +889,8 @@ static double find_best_speed(struct MPContext *mpctx, double vsync) 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->input.format); + if (mpctx->ao_chain) + return !af_fmt_is_pcm(mpctx->ao_chain->input_format.format); return false; } -- cgit v1.2.3