]> git.sesse.net Git - vlc/blobdiff - modules/control/gestures.c
playlist: Move more members as private.
[vlc] / modules / control / gestures.c
index a2e4093804ab3311fabfa68122b0800e7c40914d..940bbc42cd0c776e69954cfbe9e7918a761e8ee3 100644 (file)
@@ -139,15 +139,7 @@ static int gesture( int i_pattern, int i_num )
  *****************************************************************************/
 static input_thread_t * input_from_playlist ( playlist_t *p_playlist )
 {
-    input_thread_t * p_input;
-
-    PL_LOCK;
-    p_input = p_playlist->p_input;
-    if( p_input )
-        vlc_object_hold( p_input );
-    PL_UNLOCK;
-
-    return p_input;
+    return playlist_CurrentInput( p_playlist );
 }
 
 /*****************************************************************************