Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
76c03d8c
Commit
76c03d8c
authored
Sep 28, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: b_reset_currently_playing is private.
parent
5bb0e510
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
15 deletions
+14
-15
include/vlc_playlist.h
include/vlc_playlist.h
+0
-2
src/playlist/control.c
src/playlist/control.c
+5
-5
src/playlist/engine.c
src/playlist/engine.c
+3
-3
src/playlist/item.c
src/playlist/item.c
+4
-4
src/playlist/playlist_internal.h
src/playlist/playlist_internal.h
+1
-0
src/playlist/search.c
src/playlist/search.c
+1
-1
No files found.
include/vlc_playlist.h
View file @
76c03d8c
...
...
@@ -163,8 +163,6 @@ struct playlist_t
playlist_item_array_t
current
;
/**< Items currently being played */
int
i_current_index
;
/**< Index in current array */
/** Reset current item array */
bool
b_reset_currently_playing
;
int
i_last_playlist_id
;
/**< Last id to an item */
...
...
src/playlist/control.c
View file @
76c03d8c
...
...
@@ -118,7 +118,7 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
pl_priv
(
p_playlist
)
->
request
.
p_node
=
p_node
;
pl_priv
(
p_playlist
)
->
request
.
p_item
=
p_item
;
if
(
p_item
&&
var_GetBool
(
p_playlist
,
"random"
)
)
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
break
;
case
PLAYLIST_PLAY
:
...
...
@@ -325,7 +325,7 @@ void ResetCurrentlyPlaying( playlist_t *p_playlist, bool b_random,
ARRAY_VAL
(
p_playlist
->
current
,
j
)
=
p_tmp
;
}
}
p
_playlist
->
b_reset_currently_playing
=
false
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
false
;
stats_TimerStop
(
p_playlist
,
STATS_TIMER_PLAYLIST_BUILD
);
}
...
...
@@ -397,7 +397,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
set_current_status_node
(
p_playlist
,
pl_priv
(
p_playlist
)
->
request
.
p_node
);
pl_priv
(
p_playlist
)
->
request
.
p_node
=
NULL
;
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
}
/* If we are asked for a node, go to it's first child */
...
...
@@ -418,7 +418,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
}
}
if
(
p
_playlist
->
b_reset_currently_playing
)
if
(
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
)
/* A bit too bad to reset twice ... */
ResetCurrentlyPlaying
(
p_playlist
,
b_random
,
p_new
);
else
if
(
p_new
)
...
...
@@ -469,7 +469,7 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
get_current_status_item
(
p_playlist
)
->
i_flags
&
PLAYLIST_SKIP_FLAG
)
return
NULL
;
if
(
p
_playlist
->
b_reset_currently_playing
)
if
(
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
)
ResetCurrentlyPlaying
(
p_playlist
,
b_random
,
get_current_status_item
(
p_playlist
)
);
...
...
src/playlist/engine.c
View file @
76c03d8c
...
...
@@ -45,7 +45,7 @@ static int RandomCallback( vlc_object_t *p_this, char const *psz_cmd,
{
(
void
)
psz_cmd
;
(
void
)
oldval
;
(
void
)
newval
;
(
void
)
a
;
((
playlist_t
*
)
p_this
)
->
b_reset_currently_playing
=
true
;
pl_priv
((
playlist_t
*
)
p_this
)
->
b_reset_currently_playing
=
true
;
playlist_Signal
(
((
playlist_t
*
)
p_this
)
);
return
VLC_SUCCESS
;
}
...
...
@@ -91,7 +91,7 @@ playlist_t * playlist_Create( vlc_object_t *p_parent )
ARRAY_INIT
(
p_playlist
->
current
);
p_playlist
->
i_current_index
=
0
;
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
pl_priv
(
p_playlist
)
->
last_rebuild_date
=
0
;
pl_priv
(
p_playlist
)
->
b_tree
=
var_CreateGetBool
(
p_playlist
,
"playlist-tree"
);
...
...
@@ -362,7 +362,7 @@ void playlist_MainLoop( playlist_t *p_playlist )
PL_ASSERT_LOCKED
;
if
(
p
_playlist
->
b_reset_currently_playing
&&
if
(
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
&&
mdate
()
-
pl_priv
(
p_playlist
)
->
last_rebuild_date
>
30000
)
// 30 ms
{
ResetCurrentlyPlaying
(
p_playlist
,
var_GetBool
(
p_playlist
,
"random"
),
...
...
src/playlist/item.c
View file @
76c03d8c
...
...
@@ -632,7 +632,7 @@ playlist_item_t *playlist_ItemToNode( playlist_t *p_playlist,
DeleteFromInput
(
p_playlist
,
p_item_in_one
->
p_input
->
i_id
,
p_playlist
->
p_root_onelevel
,
false
);
}
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
vlc_object_signal_unlocked
(
p_playlist
);
var_SetInteger
(
p_playlist
,
"item-change"
,
p_item_in_category
->
p_input
->
i_id
);
...
...
@@ -769,7 +769,7 @@ int playlist_TreeMove( playlist_t * p_playlist, playlist_item_t *p_item,
}
else
i_ret
=
TreeMove
(
p_playlist
,
p_item
,
p_node
,
i_newpos
);
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
vlc_object_signal_unlocked
(
p_playlist
);
return
i_ret
;
}
...
...
@@ -796,7 +796,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
p_add
->
i_item
=
i_item_id
;
p_add
->
i_node
=
i_node_id
;
val
.
p_address
=
p_add
;
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
if
(
b_signal
)
vlc_object_signal_unlocked
(
p_playlist
);
...
...
@@ -919,7 +919,7 @@ static int DeleteInner( playlist_t * p_playlist, playlist_item_t *p_item,
{
return
playlist_NodeDelete
(
p_playlist
,
p_item
,
true
,
false
);
}
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
var_SetInteger
(
p_playlist
,
"item-deleted"
,
i_id
);
/* Remove the item from the bank */
...
...
src/playlist/playlist_internal.h
View file @
76c03d8c
...
...
@@ -107,6 +107,7 @@ typedef struct playlist_private_t
bool
b_cant_sleep
;
mtime_t
gc_date
;
mtime_t
last_rebuild_date
;
bool
b_reset_currently_playing
;
/** Reset current item array */
}
playlist_private_t
;
...
...
src/playlist/search.c
View file @
76c03d8c
...
...
@@ -170,7 +170,7 @@ int playlist_LiveSearchUpdate( playlist_t *p_playlist, playlist_item_t *p_root,
const
char
*
psz_string
)
{
PL_ASSERT_LOCKED
;
p
_playlist
->
b_reset_currently_playing
=
true
;
p
l_priv
(
p_playlist
)
->
b_reset_currently_playing
=
true
;
playlist_LiveSearchUpdateInternal
(
p_playlist
,
p_root
,
psz_string
);
vlc_object_signal_unlocked
(
p_playlist
);
return
VLC_SUCCESS
;
...
...
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