diff options
author | wm4 <wm4@nowhere> | 2013-12-24 17:46:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-24 17:46:14 +0100 |
commit | 3720b3f17d4951ab839418b5cbfd1a85eb74adba (patch) | |
tree | 819b311b4c224ba2fd3dcd0efe8008a83f2cc938 /player/dvdnav.c | |
parent | 9292f537d661af16321fd35eb0016e830594863b (diff) | |
download | mpv-3720b3f17d4951ab839418b5cbfd1a85eb74adba.tar.bz2 mpv-3720b3f17d4951ab839418b5cbfd1a85eb74adba.tar.xz |
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.
Diffstat (limited to 'player/dvdnav.c')
-rw-r--r-- | player/dvdnav.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |