Commit 75f1d9db authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: last_rebuild_date is private.

parent 03e7b770
......@@ -165,7 +165,6 @@ struct playlist_t
int i_current_index; /**< Index in current array */
/** Reset current item array */
bool b_reset_currently_playing;
mtime_t last_rebuild_date;
int i_last_playlist_id; /**< Last id to an item */
......
......@@ -92,7 +92,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
p_playlist->i_current_index = 0;
p_playlist->b_reset_currently_playing = true;
p_playlist->last_rebuild_date = 0;
pl_priv(p_playlist)->last_rebuild_date = 0;
pl_priv(p_playlist)->b_tree = var_CreateGetBool( p_playlist, "playlist-tree" );
......@@ -363,11 +363,11 @@ void playlist_MainLoop( playlist_t *p_playlist )
PL_ASSERT_LOCKED;
if( p_playlist->b_reset_currently_playing &&
mdate() - p_playlist->last_rebuild_date > 30000 ) // 30 ms
mdate() - pl_priv(p_playlist)->last_rebuild_date > 30000 ) // 30 ms
{
ResetCurrentlyPlaying( p_playlist, var_GetBool( p_playlist, "random" ),
get_current_status_item( p_playlist ) );
p_playlist->last_rebuild_date = mdate();
pl_priv(p_playlist)->last_rebuild_date = mdate();
}
check_input:
......
......@@ -106,6 +106,8 @@ typedef struct playlist_private_t
bool b_auto_preparse;
bool b_cant_sleep;
mtime_t gc_date;
mtime_t last_rebuild_date;
} playlist_private_t;
#define pl_priv( pl ) ((playlist_private_t *)(pl))
......
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