summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-01 00:44:53 +0100
committerwm4 <wm4@nowhere>2012-11-01 02:12:18 +0100
commit29cc099297498a08aaa99da26dc404bc9441ea9f (patch)
tree0e4127206b4fb170b92b39f4dc4ff74f0491e8f7 /mplayer.c
parent826c19f706ffbbf901d493fa603d2586712e4f18 (diff)
downloadmpv-29cc099297498a08aaa99da26dc404bc9441ea9f.tar.bz2
mpv-29cc099297498a08aaa99da26dc404bc9441ea9f.tar.xz
mplayer: remove useless timer calls
GetTimer() has no side-effects. Probably left over from --benchmark removal.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mplayer.c b/mplayer.c
index 7bc0329600..3e8c36e610 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2101,7 +2101,6 @@ static int fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
{
struct MPOpts *opts = &mpctx->opts;
struct ao *ao = mpctx->ao;
- unsigned int t;
int playsize;
int playflags = 0;
bool audio_eof = false;
@@ -2119,9 +2118,6 @@ static int fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
else
playsize = ao_get_space(ao);
- // Fill buffer if needed:
- t = GetTimer();
-
// Coming here with hrseek_active still set means audio-only
if (!mpctx->sh_video)
mpctx->syncing_audio = false;
@@ -2149,7 +2145,7 @@ static int fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
else if (mpctx->sh_audio->ds->eof)
audio_eof = true;
}
- t = GetTimer() - t;
+
if (endpts != MP_NOPTS_VALUE && modifiable_audio_format) {
double bytes = (endpts - written_audio_pts(mpctx) + audio_delay)
* ao->bps / opts->playback_speed;