]> git.sesse.net Git - vlc/commitdiff
Only update the menu when it is visible.
authorJean-Paul Saman <jpsaman@videolan.org>
Wed, 6 Jun 2007 14:33:46 +0000 (14:33 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Wed, 6 Jun 2007 14:33:46 +0000 (14:33 +0000)
modules/video_filter/osdmenu.c

index 6508a1c7b3802d3a66392fef943692e8d9ee5340..afe7e423d3e5794b46eb3e21db56564d53c43290 100644 (file)
@@ -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) )
         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;
 }