diff options
author | wm4 <wm4@nowhere> | 2016-02-27 20:02:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-27 20:03:15 +0100 |
commit | 49660bcc3efa6ec6d86db30fa9d0b71b6a06b7d7 (patch) | |
tree | 4c0f3382ca90511c9c903f8e711e259f0e634d8d /player/audio.c | |
parent | 183e2cda309fc81158e18b52e64008a45263212e (diff) | |
download | mpv-49660bcc3efa6ec6d86db30fa9d0b71b6a06b7d7.tar.bz2 mpv-49660bcc3efa6ec6d86db30fa9d0b71b6a06b7d7.tar.xz |
player: minor simplification
No need to pass endpts down in such a dumb way.
Also remove an outdated comment somewhere.
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |