[vlc-devel] commit: Use var_TriggerCallback ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Jul 13 20:14:02 CEST 2009


vlc | branch: 1.0-bugfix | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 13 21:13:03 2009 +0300| [d33993b96755691684fe2a0ed9ae2388ee3f4fa1] | committer: Rémi Denis-Courmont 

Use var_TriggerCallback

(cherry picked from commit 4137a1d03a7f7fb1f55b96d1a6d0423aadc0be6c)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d33993b96755691684fe2a0ed9ae2388ee3f4fa1
---

 modules/video_output/x11/xcommon.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index f76fb65..61ef979 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -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;
 }




More information about the vlc-devel mailing list