summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorharklu <harklu@wat>2011-08-01 22:20:12 +0200
committerUoti Urpala <uau@mplayer2.org>2011-08-08 04:20:25 +0300
commitd843c9ca3844c36abbe77b12cb6ebfede5589126 (patch)
treec4ca41eee7bb7776050968ad8b8ba61fb15300d1 /command.c
parentd52acba688a0fceff93888097951d8bd61f3bc7e (diff)
downloadmpv-d843c9ca3844c36abbe77b12cb6ebfede5589126.tar.bz2
mpv-d843c9ca3844c36abbe77b12cb6ebfede5589126.tar.xz
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.
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
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