diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-21 01:06:54 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-23 19:32:53 +0000 |
commit | 7847f15ee283abcf50127e18cb9ed2c7aba7c36b (patch) | |
tree | 763cb15d77e9e26dd4620c1c1722a9a88316571f /player/sub.c | |
parent | 4709a94aec5b16534b1d6b0d6738caeaf692e9c9 (diff) | |
download | mpv-7847f15ee283abcf50127e18cb9ed2c7aba7c36b.tar.bz2 mpv-7847f15ee283abcf50127e18cb9ed2c7aba7c36b.tar.xz |
sub: update subtitles if current track is an image
Any track that has attached picture is also always considered an image.
Not every image is neccesarily an attached picture though. So change the
check here to capture more possible cases where we should be updating
the subtitle. With the previous commits, this fixes #12387.
Diffstat (limited to 'player/sub.c')
-rw-r--r-- | player/sub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/sub.c b/player/sub.c index 7dd1f2ccb6..f3e42fe13b 100644 --- a/player/sub.c +++ b/player/sub.c @@ -116,7 +116,7 @@ static bool update_subtitle(struct MPContext *mpctx, double video_pts, if (mpctx->video_out && mpctx->video_status == STATUS_EOF && (mpctx->opts->subs_rend->sub_past_video_end || !mpctx->current_track[0][STREAM_VIDEO] || - mpctx->current_track[0][STREAM_VIDEO]->attached_picture)) { + mpctx->current_track[0][STREAM_VIDEO]->image)) { 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); |