]> git.sesse.net Git - vlc/commitdiff
playlist: remove stray code
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Nov 2012 18:31:47 +0000 (20:31 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 26 Nov 2012 18:36:32 +0000 (20:36 +0200)
Resetting the playing item only makes sense when there is no already
active input; NextItem() takes care of that from LoopRequest():

This code was redundant since the playlist was made tick-less (the
rebuild date check made no sense anymore).

src/playlist/engine.c
src/playlist/playlist_internal.h
src/playlist/thread.c

index aca7b59f6d5c2588dc3ee74184bbdcf9fe400bb0..42d554e0eccf7347281d20ac02f90f979b437765 100644 (file)
@@ -227,7 +227,6 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
 
     p_playlist->i_current_index = 0;
     pl_priv(p_playlist)->b_reset_currently_playing = true;
-    pl_priv(p_playlist)->last_rebuild_date = 0;
 
     pl_priv(p_playlist)->b_tree = var_InheritBool( p_parent, "playlist-tree" );
 
index 7c782543aebb34aff70bfbba1f39884cec9e3bf3..fedecea411666a7edd0495a511b6cffc6761e352 100644 (file)
@@ -90,8 +90,6 @@ typedef struct playlist_private_t
     bool     b_tree; /**< Display as a tree */
     bool     b_doing_ml; /**< Doing media library stuff  get quicker */
     bool     b_auto_preparse;
-    mtime_t  last_rebuild_date;
-
 } playlist_private_t;
 
 #define pl_priv( pl ) ((playlist_private_t *)(pl))
index 1d5b65b7072e3c364a6a1251d6f47b738e3d2bc4..be293b1588b37df124d6ed08bc957a43aa13e3a9 100644 (file)
@@ -562,14 +562,9 @@ static void *Thread ( void *data )
     playlist_Lock( p_playlist );
     while( !p_sys->killed || p_sys->p_input )
     {
-        /* FIXME: what's that ! */
-        if( p_sys->b_reset_currently_playing &&
-            mdate() - p_sys->last_rebuild_date > 30000 ) // 30 ms
-        {
+        if( p_sys->b_reset_currently_playing )
             ResetCurrentlyPlaying( p_playlist,
                                    get_current_status_item( p_playlist ) );
-            p_sys->last_rebuild_date = mdate();
-        }
 
         /* If there is an input, check that it doesn't need to die. */
         while( !LoopInput( p_playlist ) )