From d843c9ca3844c36abbe77b12cb6ebfede5589126 Mon Sep 17 00:00:00 2001 From: harklu Date: Mon, 1 Aug 2011 22:20:12 +0200 Subject: [PATCH] commands: property sub_scale: update old subs immediately When using the "old" subtitle renderer (i.e. not libass), changes to this property were not reflected immediately, and came into effect only when the next subtitle event was rendered. --- command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command.c b/command.c index 48f3a7e6b4..57ce7d8d20 100644 --- a/command.c +++ b/command.c @@ -2017,6 +2017,7 @@ static int mp_property_sub_scale(m_option_t *prop, int action, void *arg, #endif text_font_scale_factor = *(float *) arg; force_load_font = 1; + vo_osd_changed(OSDTYPE_SUBTITLE); return M_PROPERTY_OK; case M_PROPERTY_STEP_UP: case M_PROPERTY_STEP_DOWN: @@ -2032,6 +2033,7 @@ static int mp_property_sub_scale(m_option_t *prop, int action, void *arg, (action == M_PROPERTY_STEP_UP ? 1.0 : -1.0); M_PROPERTY_CLAMP(prop, text_font_scale_factor); force_load_font = 1; + vo_osd_changed(OSDTYPE_SUBTITLE); return M_PROPERTY_OK; default: #ifdef CONFIG_ASS -- 2.11.4.GIT