mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
options: add --sub-visibility=<primary-only|secondary-only>
Adds --sub-visibility choices 'primary-only' for only displaying the primary subtitle track, and 'secondary-only' for only displaying secondary subtitle track. Removes --secondary-sub-visibility and displays a message telling the user to use --sub-visibility=yes/primary-only instead. These changes make it so that the default 'sub-visibility' bind 'v' cycles through all the 'sub-visibility' choices, 'no', 'yes', 'primary-only', and 'secondary-only'.
This commit is contained in:
@@ -291,7 +291,7 @@ static struct sub_bitmaps *render_object(struct osd_state *osd,
|
||||
check_obj_resize(osd, osdres, obj);
|
||||
|
||||
if (obj->type == OSDTYPE_SUB) {
|
||||
if (obj->sub)
|
||||
if (obj->sub && sub_is_primary_visible(obj->sub))
|
||||
res = sub_get_bitmaps(obj->sub, obj->vo_res, format, video_pts);
|
||||
} else if (obj->type == OSDTYPE_SUB2) {
|
||||
if (obj->sub && sub_is_secondary_visible(obj->sub))
|
||||
|
||||
Reference in New Issue
Block a user