[vlc-devel] commit: playlist: create the fullscreen variable ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Feb 10 18:56:30 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 10 18:06:25 2010 +0200| [316129116d0a20e33c98c12495ae5c5b355ce40f] | committer: Rémi Denis-Courmont 

playlist: create the fullscreen variable

At least the ncurses and MacOS interface already depends on this, and
the earlier did not create it... This is needed for a later fix to
LibVLC.

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

 modules/gui/macosx/intf.m |    1 -
 src/playlist/engine.c     |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7bc551e..3cb3c77 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -516,7 +516,6 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     p_playlist = pl_Get( p_intf );
 
-    var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT);
     val.b_bool = false;
 
     var_AddCallback( p_playlist, "fullscreen", FullscreenChanged, self);
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 0b9bd73..8976ac4 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -313,6 +313,9 @@ static void VariablesInit( playlist_t *p_playlist )
 
     /* */
     var_Create( p_playlist, "album-art", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
+
+    /* Variables to preserve video output parameters */
+    var_Create( p_playlist, "fullscreen", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
 }
 
 playlist_item_t * playlist_CurrentPlayingItem( playlist_t * p_playlist )




More information about the vlc-devel mailing list