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

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


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

Use var_TriggerCallback

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

 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 1947d21..a904def 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