Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
2f4258d6
Commit
2f4258d6
authored
Sep 28, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: gc_date is private.
parent
5539b7b7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
include/vlc_playlist.h
include/vlc_playlist.h
+0
-1
src/playlist/engine.c
src/playlist/engine.c
+5
-5
src/playlist/playlist_internal.h
src/playlist/playlist_internal.h
+1
-0
No files found.
include/vlc_playlist.h
View file @
2f4258d6
...
@@ -180,7 +180,6 @@ struct playlist_t
...
@@ -180,7 +180,6 @@ struct playlist_t
/* Runtime */
/* Runtime */
int
i_sort
;
/**< Last sorting applied to the playlist */
int
i_sort
;
/**< Last sorting applied to the playlist */
int
i_order
;
/**< Last ordering applied to the playlist */
int
i_order
;
/**< Last ordering applied to the playlist */
mtime_t
gc_date
;
};
};
/** Helper to add an item */
/** Helper to add an item */
...
...
src/playlist/engine.c
View file @
2f4258d6
...
@@ -82,7 +82,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
...
@@ -82,7 +82,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
p_playlist
->
i_last_playlist_id
=
0
;
p_playlist
->
i_last_playlist_id
=
0
;
pl_priv
(
p_playlist
)
->
p_input
=
NULL
;
pl_priv
(
p_playlist
)
->
p_input
=
NULL
;
p
_playlist
->
gc_date
=
0
;
p
l_priv
(
p_playlist
)
->
gc_date
=
0
;
pl_priv
(
p_playlist
)
->
b_cant_sleep
=
false
;
pl_priv
(
p_playlist
)
->
b_cant_sleep
=
false
;
ARRAY_INIT
(
p_playlist
->
items
);
ARRAY_INIT
(
p_playlist
->
items
);
...
@@ -215,12 +215,12 @@ static void ObjectGarbageCollector( playlist_t *p_playlist, bool b_force )
...
@@ -215,12 +215,12 @@ static void ObjectGarbageCollector( playlist_t *p_playlist, bool b_force )
{
{
if
(
!
b_force
)
if
(
!
b_force
)
{
{
if
(
mdate
()
-
p
_playlist
->
gc_date
<
1000000
)
if
(
mdate
()
-
p
l_priv
(
p_playlist
)
->
gc_date
<
1000000
)
{
{
pl_priv
(
p_playlist
)
->
b_cant_sleep
=
true
;
pl_priv
(
p_playlist
)
->
b_cant_sleep
=
true
;
return
;
return
;
}
}
else
if
(
p
_playlist
->
gc_date
==
0
)
else
if
(
p
l_priv
(
p_playlist
)
->
gc_date
==
0
)
return
;
return
;
}
}
...
@@ -241,7 +241,7 @@ static void input_selected_stream_changed( const vlc_event_t * event, void * dat
...
@@ -241,7 +241,7 @@ static void input_selected_stream_changed( const vlc_event_t * event, void * dat
(
void
)
event
;
(
void
)
event
;
playlist_t
*
p_playlist
=
data
;
playlist_t
*
p_playlist
=
data
;
PL_LOCK
;
PL_LOCK
;
p
_playlist
->
gc_date
=
mdate
();
p
l_priv
(
p_playlist
)
->
gc_date
=
mdate
();
vlc_object_signal_unlocked
(
p_playlist
);
vlc_object_signal_unlocked
(
p_playlist
);
PL_UNLOCK
;
PL_UNLOCK
;
}
}
...
@@ -402,7 +402,7 @@ check_input:
...
@@ -402,7 +402,7 @@ check_input:
/* Destroy input */
/* Destroy input */
playlist_release_current_input
(
p_playlist
);
playlist_release_current_input
(
p_playlist
);
p
_playlist
->
gc_date
=
mdate
();
p
l_priv
(
p_playlist
)
->
gc_date
=
mdate
();
pl_priv
(
p_playlist
)
->
b_cant_sleep
=
true
;
pl_priv
(
p_playlist
)
->
b_cant_sleep
=
true
;
i_activity
=
var_GetInteger
(
p_playlist
,
"activity"
);
i_activity
=
var_GetInteger
(
p_playlist
,
"activity"
);
...
...
src/playlist/playlist_internal.h
View file @
2f4258d6
...
@@ -105,6 +105,7 @@ typedef struct playlist_private_t
...
@@ -105,6 +105,7 @@ typedef struct playlist_private_t
bool
b_doing_ml
;
/**< Doing media library stuff get quicker */
bool
b_doing_ml
;
/**< Doing media library stuff get quicker */
bool
b_auto_preparse
;
bool
b_auto_preparse
;
bool
b_cant_sleep
;
bool
b_cant_sleep
;
mtime_t
gc_date
;
}
playlist_private_t
;
}
playlist_private_t
;
#define pl_priv( pl ) ((playlist_private_t *)(pl))
#define pl_priv( pl ) ((playlist_private_t *)(pl))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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