From 3720b3f17d4951ab839418b5cbfd1a85eb74adba Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 24 Dec 2013 17:46:14 +0100 Subject: player: add --secondary-sid for displaying a second subtitle stream This is relatively hacky, but it's Christmas, so it's ok. This does two things: 1. allow selecting two subtitle tracks, and 2. include a hack that renders the second subtitle always as toptitle. See manpage additions how to use this. --- player/dvdnav.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/dvdnav.c') diff --git a/player/dvdnav.c b/player/dvdnav.c index e90a65e035..bc14e7c35f 100644 --- a/player/dvdnav.c +++ b/player/dvdnav.c @@ -222,8 +222,8 @@ void mp_nav_get_highlight(struct osd_state *osd, struct mp_osd_res res, nav->hi_elem = sub; int sizes[2] = {0}; - if (mpctx->d_sub) - sub_control(mpctx->d_sub, SD_CTRL_GET_RESOLUTION, sizes); + if (mpctx->d_sub[0]) + sub_control(mpctx->d_sub[0], SD_CTRL_GET_RESOLUTION, sizes); if (sizes[0] < 1 || sizes[1] < 1) { struct mp_image_params vid = {0}; if (mpctx->d_video) -- cgit v1.2.3