[vlc-devel] [PATCH 10/20] player: handle secondary-sub-margin notification
Thomas Guillem
thomas at gllm.fr
Thu Jun 20 17:23:53 CEST 2019
From: Roland Bewick <roland.bewick at gmail.com>
Only used for OSD.
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
---
src/input/player.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/input/player.c b/src/input/player.c
index 358502d21b..3b915f5838 100644
--- a/src/input/player.c
+++ b/src/input/player.c
@@ -1971,10 +1971,10 @@ vlc_player_input_HandleVoutEvent(struct vlc_player_input *input,
assert(ev->vout);
assert(ev->id);
- static const char osd_vars[][sizeof("deinterlace-mode")] = {
+ static const char osd_vars[][sizeof("secondary-sub-margin")] = {
"aspect-ratio", "autoscale", "crop", "crop-bottom",
"crop-top", "crop-left", "crop-right", "deinterlace",
- "deinterlace-mode", "sub-margin", "zoom"
+ "deinterlace-mode", "sub-margin", "secondary-sub-margin", "zoom"
};
vlc_player_t *player = input->player;
@@ -3451,6 +3451,9 @@ vlc_player_VoutOSDCallback(vlc_object_t *this, const char *var,
else if (strcmp(var, "sub-margin") == 0)
vouts_osd_Message(&vout, 1, _("Subtitle position %d px"), newval.i_int);
+ else if (strcmp(var, "secondary-sub-margin") == 0)
+ vouts_osd_Message(&vout, 1, _("Secondary subtitle position %d px"), newval.i_int);
+
else if (strcmp(var, "sub-text-scale") == 0)
vouts_osd_Message(&vout, 1, _("Subtitle text scale %d%%"), newval.i_int);
--
2.20.1
More information about the vlc-devel
mailing list