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" );
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))
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 ) )