Commit edd807d5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove stray code

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).
parent 19c49bbc
......@@ -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" );
......
......@@ -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))
......
......@@ -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 ) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment