From 49660bcc3efa6ec6d86db30fa9d0b71b6a06b7d7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 27 Feb 2016 20:02:51 +0100 Subject: player: minor simplification No need to pass endpts down in such a dumb way. Also remove an outdated comment somewhere. --- player/audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player/audio.c') diff --git a/player/audio.c b/player/audio.c index 537d2e1b29..f17587a1ca 100644 --- a/player/audio.c +++ b/player/audio.c @@ -713,7 +713,7 @@ static int filter_audio(struct ao_chain *ao_c, struct mp_audio_buffer *outbuf, return res; } -void fill_audio_out_buffers(struct MPContext *mpctx, double endpts) +void fill_audio_out_buffers(struct MPContext *mpctx) { struct MPOpts *opts = mpctx->opts; struct ao_chain *ao_c = mpctx->ao_chain; @@ -895,6 +895,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts) bool partial_fill = false; int playflags = 0; + double endpts = get_play_end_pts(mpctx); if (endpts != MP_NOPTS_VALUE) { double samples = (endpts - written_audio_pts(mpctx) - opts->audio_delay) * play_samplerate; -- cgit v1.2.3