[vlc-commits] commit: playlist: allow video-on-top variable to be preserved across vouts ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sun Mar 28 23:58:27 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 29 00:39:41 2010 +0300| [9b8d88b92fd9728584f89be0209ebc7fd653be69] | committer: Rémi Denis-Courmont 

playlist: allow video-on-top variable to be preserved across vouts

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

 src/playlist/engine.c        |    1 +
 src/video_output/vout_intf.c |    4 ----
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 9367e17..8a40f47 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -322,6 +322,7 @@ static void VariablesInit( playlist_t *p_playlist )
 
     /* Variables to preserve video output parameters */
     var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
+    var_Create( p_playlist, "video-on-top", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
 
     /* Audio output parameters */
     var_Create( p_playlist, "volume-muted", VLC_VAR_BOOL );
diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 02ff0b0..61f1b55 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -966,10 +966,6 @@ static int OnTopCallback( vlc_object_t *p_this, char const *psz_cmd,
     p_vout->b_on_top = newval.b_bool;
     vlc_mutex_unlock( &p_vout->change_lock );
 
-    /* Modify libvlc as well because the vout might have to be restarted */
-    var_Create( p_vout->p_libvlc, "video-on-top", VLC_VAR_BOOL );
-    var_Set( p_vout->p_libvlc, "video-on-top", newval );
-
     (void)psz_cmd; (void)oldval; (void)p_data;
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list