Commit 31982bc9 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Only update the menu when it is visible.

parent ad2ce2a1
...@@ -614,6 +614,6 @@ static int OSDMenuCallback( vlc_object_t *p_this, char const *psz_var, ...@@ -614,6 +614,6 @@ static int OSDMenuCallback( vlc_object_t *p_this, char const *psz_var,
else if( !strncmp( psz_var, OSD_CFG"alpha", 13) ) else if( !strncmp( psz_var, OSD_CFG"alpha", 13) )
p_sys->i_alpha = newval.i_int % 256; p_sys->i_alpha = newval.i_int % 256;
p_sys->b_update = VLC_TRUE; p_sys->b_update = p_sys->b_visible ? VLC_TRUE : VLC_FALSE;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment