summaryrefslogtreecommitdiffstats
path: root/player/sub.c
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2021-06-27 01:30:24 -0500
committerLeo Izen <leo.izen@gmail.com>2021-06-27 21:02:39 -0400
commit0c1544e66cb980bd8a1dedb13ac07904380da608 (patch)
tree9c7ff3db8efee047588737871d6ac07b05764e63 /player/sub.c
parenta02901cae77c86fb9de997a418296d1fc0e3eada (diff)
downloadmpv-0c1544e66cb980bd8a1dedb13ac07904380da608.tar.bz2
mpv-0c1544e66cb980bd8a1dedb13ac07904380da608.tar.xz
sub: fix subs/lyrics on music files with sub-past-video-end=no
Regressed in 11423acf3
Diffstat (limited to 'player/sub.c')
-rw-r--r--player/sub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/sub.c b/player/sub.c
index 49bae790de..148109bdc9 100644
--- a/player/sub.c
+++ b/player/sub.c
@@ -115,7 +115,9 @@ static bool update_subtitle(struct MPContext *mpctx, double video_pts,
// quite different, because normally subtitles are redrawn on new video
// frames, using the video frames' timestamps.
if (mpctx->video_out && mpctx->video_status == STATUS_EOF &&
- mpctx->opts->subs_rend->sub_past_video_end) {
+ (mpctx->opts->subs_rend->sub_past_video_end ||
+ !mpctx->current_track[0][STREAM_VIDEO] ||
+ mpctx->current_track[0][STREAM_VIDEO]->attached_picture)) {
if (osd_get_force_video_pts(mpctx->osd) != video_pts) {
osd_set_force_video_pts(mpctx->osd, video_pts);
osd_query_and_reset_want_redraw(mpctx->osd);