summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-24 17:27:40 +0200
committerwm4 <wm4@nowhere>2015-07-24 17:27:40 +0200
commit9f65629bd07b21a2fc1cdf2bb64122f5a8370327 (patch)
treea153d48b22e2d1a284bb40baf1093fa27920b4b9
parentc581804603b01218de6b135b4b3156e837af15e4 (diff)
downloadmpv-9f65629bd07b21a2fc1cdf2bb64122f5a8370327.tar.bz2
mpv-9f65629bd07b21a2fc1cdf2bb64122f5a8370327.tar.xz
audio: remove an unused parameter
-rw-r--r--player/audio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/player/audio.c b/player/audio.c
index 48b14b735d..1ac517f762 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -369,8 +369,7 @@ double playing_audio_pts(struct MPContext *mpctx)
return pts - mpctx->opts->playback_speed * ao_get_delay(mpctx->ao);
}
-static int write_to_ao(struct MPContext *mpctx, struct mp_audio *data, int flags,
- double pts)
+static int write_to_ao(struct MPContext *mpctx, struct mp_audio *data, int flags)
{
if (mpctx->paused)
return 0;
@@ -604,7 +603,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
struct mp_audio data;
mp_audio_buffer_peek(mpctx->ao_buffer, &data);
data.samples = MPMIN(data.samples, playsize);
- int played = write_to_ao(mpctx, &data, playflags, written_audio_pts(mpctx));
+ int played = write_to_ao(mpctx, &data, playflags);
assert(played >= 0 && played <= data.samples);
mp_audio_buffer_skip(mpctx->ao_buffer, played);