mirror of https://github.com/mpv-player/mpv
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:
parent
d812599851
commit
17fe9d7c0d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue