mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 13:41:49 +00:00
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.
This commit is contained in:
parent
4709a94aec
commit
7847f15ee2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user