]> git.sesse.net Git - vlc/blobdiff - modules/control/http/http.c
playlist: Move more members as private.
[vlc] / modules / control / http / http.c
index d66e8f1dce12dea4ca49a05e7c47c30b0ba50ed0..a1f77f2c7a06f68219e3f1e973c68aad892addfb 100644 (file)
@@ -384,10 +384,9 @@ static void ParseExecute( httpd_file_sys_t *p_args, char *p_buffer,
 
     assert( p_sys->p_input == NULL );
     /* FIXME: proper locking anyone? */
-    p_sys->p_input = p_sys->p_playlist->p_input;
+    p_sys->p_input = playlist_CurrentInput( p_sys->p_playlist );
     if( p_sys->p_input )
     {
-        vlc_object_hold( p_sys->p_input );
         var_Get( p_sys->p_input, "position", &val);
         sprintf( position, "%d" , (int)((val.f_float) * 100.0));
         var_Get( p_sys->p_input, "time", &val);