Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
75f1d9db
Commit
75f1d9db
authored
Sep 28, 2008
by
Pierre d'Herbemont
Browse files
playlist: last_rebuild_date is private.
parent
03e7b770
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/vlc_playlist.h
View file @
75f1d9db
...
...
@@ -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 */
...
...
src/playlist/engine.c
View file @
75f1d9db
...
...
@@ -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:
...
...
src/playlist/playlist_internal.h
View file @
75f1d9db
...
...
@@ -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))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment