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.
This commit is contained in:
wm4 2015-08-01 22:18:32 +02:00
parent d812599851
commit 17fe9d7c0d
1 changed files with 0 additions and 3 deletions

View File

@ -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)