diff options
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c index 0dca3a597f..3a9941d8e0 100644 --- a/player/video.c +++ b/player/video.c @@ -1053,9 +1053,11 @@ static double find_best_speed(struct MPContext *mpctx, double vsync) static bool using_spdif_passthrough(struct MPContext *mpctx) { if (mpctx->ao_chain && mpctx->ao_chain->ao) { - struct mp_audio out_format = {0}; - ao_get_format(mpctx->ao_chain->ao, &out_format); - return !af_fmt_is_pcm(out_format.format); + int samplerate; + int format; + struct mp_chmap channels; + ao_get_format(mpctx->ao_chain->ao, &samplerate, &format, &channels); + return !af_fmt_is_pcm(format); } return false; } |