diff options
author | harklu <harklu@wat> | 2011-08-01 22:20:12 +0200 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-08-08 04:20:25 +0300 |
commit | d843c9ca3844c36abbe77b12cb6ebfede5589126 (patch) | |
tree | c4ca41eee7bb7776050968ad8b8ba61fb15300d1 | |
parent | d52acba688a0fceff93888097951d8bd61f3bc7e (diff) | |
download | mpv-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.
-rw-r--r-- | command.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |