]> git.sesse.net Git - vlc/commitdiff
Use var_TriggerCallback
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 13 Jul 2009 18:13:03 +0000 (21:13 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 13 Jul 2009 18:13:03 +0000 (21:13 +0300)
modules/video_output/x11/xcommon.c

index 1947d21f95f789d6bdcc78d821b494e0fbb52b6b..a904def5ce1a532d9c2c2fac1c8407bc62548274 100644 (file)
@@ -174,7 +174,6 @@ int Activate ( vlc_object_t *p_this )
 {
     vout_thread_t *p_vout = (vout_thread_t *)p_this;
     char *        psz_display;
-    vlc_value_t   val;
 #if defined(MODULE_NAME_IS_xvmc)
     char *psz_value;
 #endif
@@ -443,8 +442,7 @@ int Activate ( vlc_object_t *p_this )
 
     /* Variable to indicate if the window should be on top of others */
     /* Trigger a callback right now */
-    var_Get( p_vout, "video-on-top", &val );
-    var_Set( p_vout, "video-on-top", val );
+    var_TriggerCallback( p_vout, "video-on-top" );
 
     return VLC_SUCCESS;
 }