diff options
author | wm4 <wm4@nowhere> | 2015-08-01 22:18:32 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-01 22:18:32 +0200 |
commit | 17fe9d7c0d33ead1d13535952d8491aaf68d3c46 (patch) | |
tree | da89599cd03075e426483d05b15400e96091da26 | |
parent | d812599851b289ae85832fa16dc93ef2099c353e (diff) | |
download | mpv-17fe9d7c0d33ead1d13535952d8491aaf68d3c46.tar.bz2 mpv-17fe9d7c0d33ead1d13535952d8491aaf68d3c46.tar.xz |
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.
-rw-r--r-- | player/audio.c | 3 |
1 files changed, 0 insertions, 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) |