[vlc-commits] playlist: gather variables and callbacks (cosmetic)

Rémi Denis-Courmont git at videolan.org
Wed Aug 8 18:10:06 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug  8 18:31:43 2012 +0300| [cb06fa8de3fc5e32a2a447d2563461caeb3d4861] | committer: Rémi Denis-Courmont

playlist: gather variables and callbacks (cosmetic)

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

 src/playlist/engine.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 6038375..66a73ae 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -413,21 +413,20 @@ static void VariablesInit( playlist_t *p_playlist )
     var_Create( p_playlist, "play-and-stop", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
     var_Create( p_playlist, "play-and-exit", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
     var_Create( p_playlist, "random", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
+    var_AddCallback( p_playlist, "random", RandomCallback, NULL );
     var_Create( p_playlist, "repeat", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
     var_Create( p_playlist, "loop", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
 
     var_Create( p_playlist, "rate", VLC_VAR_FLOAT | VLC_VAR_DOINHERIT );
-    var_Create( p_playlist, "rate-slower", VLC_VAR_VOID );
-    var_Create( p_playlist, "rate-faster", VLC_VAR_VOID );
     var_AddCallback( p_playlist, "rate", RateCallback, NULL );
+    var_Create( p_playlist, "rate-slower", VLC_VAR_VOID );
     var_AddCallback( p_playlist, "rate-slower", RateOffsetCallback, NULL );
+    var_Create( p_playlist, "rate-faster", VLC_VAR_VOID );
     var_AddCallback( p_playlist, "rate-faster", RateOffsetCallback, NULL );
 
     var_Create( p_playlist, "video-splitter", VLC_VAR_STRING | VLC_VAR_DOINHERIT );
     var_AddCallback( p_playlist, "video-splitter", VideoSplitterCallback, NULL );
 
-    var_AddCallback( p_playlist, "random", RandomCallback, NULL );
-
     /* */
     var_Create( p_playlist, "album-art", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
 



More information about the vlc-commits mailing list