Unified · Split
| @@ -138,7 +138,9 @@ static bool update_subtitle(struct MPContext *mpctx, double video_pts, · 137 unmodified lines | |||
| 138 | // Handle displaying subtitles on terminal. | 138 | // Handle displaying subtitles on terminal. |
| 139 | if (track->selected && track->type == STREAM_SUB && !mpctx->video_out) { | 139 | if (track->selected && track->type == STREAM_SUB && !mpctx->video_out) { |
| 140 | char *text = sub_get_text(dec_sub, video_pts, SD_TEXT_TYPE_PLAIN); | 140 | char *text = sub_get_text(dec_sub, video_pts, SD_TEXT_TYPE_PLAIN); |
| 141 | term_osd_set_subs(mpctx, text, get_order(mpctx, track)); | 141 | int order = get_order(mpctx, track); |
| 142 | if (order >= 0) | ||
| 143 | term_osd_set_subs(mpctx, text, order); | ||
| 142 | talloc_free(text); | 144 | talloc_free(text); |
| 143 | } | 145 | } |
| 144 | 146 | ||