mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
player: don't try updating subtitles while playback PTS doesn't progress
This code would just keep it busy while e.g. being paused. Even if it's not paused, it couldn't help with anything since we obviously still lock display to the externally updated PTS.
This commit is contained in:
parent
1afc0c8b55
commit
1ff6d8ae2e
@ -120,10 +120,10 @@ static bool update_subtitle(struct MPContext *mpctx, double video_pts,
|
|||||||
osd_set_force_video_pts(mpctx->osd, video_pts);
|
osd_set_force_video_pts(mpctx->osd, video_pts);
|
||||||
osd_query_and_reset_want_redraw(mpctx->osd);
|
osd_query_and_reset_want_redraw(mpctx->osd);
|
||||||
vo_redraw(mpctx->video_out);
|
vo_redraw(mpctx->video_out);
|
||||||
}
|
|
||||||
// Force an arbitrary minimum FPS
|
// Force an arbitrary minimum FPS
|
||||||
mp_set_timeout(mpctx, 0.1);
|
mp_set_timeout(mpctx, 0.1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user