From 17fe9d7c0d33ead1d13535952d8491aaf68d3c46 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Aug 2015 22:18:32 +0200 Subject: audio: remove questionable speed change adjustment time_frame is when the next video frame should be shown. It's normally overwritten by the video timing code. This also says something about "nosound mode" (--no-audio today), but at least these days we don't use it at all if video is disabled. Remove it; it likely has no function at all. --- player/audio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/player/audio.c b/player/audio.c index 1ac517f762..f5f9bd3e60 100644 --- a/player/audio.c +++ b/player/audio.c @@ -121,9 +121,6 @@ void set_playback_speed(struct MPContext *mpctx, double new_speed) { struct MPOpts *opts = mpctx->opts; - // Adjust time until next frame flip for nosound mode - mpctx->time_frame *= opts->playback_speed / new_speed; - opts->playback_speed = new_speed; if (!mpctx->d_audio || mpctx->d_audio->afilter->initialized < 1) -- cgit v1.2.3