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
8fed9f21
Commit
8fed9f21
authored
Dec 15, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: remove request.i_status
parent
52260420
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
10 deletions
+5
-10
src/playlist/control.c
src/playlist/control.c
+1
-6
src/playlist/item.c
src/playlist/item.c
+0
-1
src/playlist/playlist_internal.h
src/playlist/playlist_internal.h
+0
-1
src/playlist/thread.c
src/playlist/thread.c
+4
-2
No files found.
src/playlist/control.c
View file @
8fed9f21
...
...
@@ -60,9 +60,9 @@ static void playlist_vaControl( playlist_t *p_playlist, int i_query, va_list arg
switch
(
i_query
)
{
case
PLAYLIST_STOP
:
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_STOPPED
;
pl_priv
(
p_playlist
)
->
request
.
b_request
=
true
;
pl_priv
(
p_playlist
)
->
request
.
p_item
=
NULL
;
pl_priv
(
p_playlist
)
->
request
.
p_node
=
NULL
;
break
;
// Node can be null, it will keep the same. Use with care ...
...
...
@@ -77,7 +77,6 @@ static void playlist_vaControl( playlist_t *p_playlist, int i_query, va_list arg
p_node
=
get_current_status_node
(
p_playlist
);
assert
(
p_node
);
}
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_RUNNING
;
pl_priv
(
p_playlist
)
->
request
.
i_skip
=
0
;
pl_priv
(
p_playlist
)
->
request
.
b_request
=
true
;
pl_priv
(
p_playlist
)
->
request
.
p_node
=
p_node
;
...
...
@@ -96,7 +95,6 @@ static void playlist_vaControl( playlist_t *p_playlist, int i_query, va_list arg
}
else
{
pl_priv
(
p_playlist
)
->
request
.
i_status
=
PLAYLIST_RUNNING
;
pl_priv
(
p_playlist
)
->
request
.
b_request
=
true
;
pl_priv
(
p_playlist
)
->
request
.
p_node
=
get_current_status_node
(
p_playlist
);
pl_priv
(
p_playlist
)
->
request
.
p_item
=
get_current_status_item
(
p_playlist
);
...
...
@@ -128,9 +126,6 @@ static void playlist_vaControl( playlist_t *p_playlist, int i_query, va_list arg
pl_priv
(
p_playlist
)
->
request
.
p_node
=
get_current_status_node
(
p_playlist
);
pl_priv
(
p_playlist
)
->
request
.
p_item
=
get_current_status_item
(
p_playlist
);
pl_priv
(
p_playlist
)
->
request
.
i_skip
=
(
int
)
va_arg
(
args
,
int
);
/* if already running, keep running */
if
(
pl_priv
(
p_playlist
)
->
status
.
i_status
!=
PLAYLIST_STOPPED
)
pl_priv
(
p_playlist
)
->
request
.
i_status
=
pl_priv
(
p_playlist
)
->
status
.
i_status
;
pl_priv
(
p_playlist
)
->
request
.
b_request
=
true
;
break
;
}
...
...
src/playlist/item.c
View file @
8fed9f21
...
...
@@ -756,7 +756,6 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
sys
->
request
.
p_item
=
p_item
;
if
(
sys
->
p_input
!=
NULL
)
input_Stop
(
sys
->
p_input
,
true
);
sys
->
request
.
i_status
=
PLAYLIST_RUNNING
;
vlc_cond_signal
(
&
sys
->
signal
);
}
/* Preparse if no artist/album info, and hasn't been preparsed allready
...
...
src/playlist/playlist_internal.h
View file @
8fed9f21
...
...
@@ -68,7 +68,6 @@ typedef struct playlist_private_t
struct
{
/* Request. Use this to give orders to the playlist main loop */
playlist_status_t
i_status
;
/**< requested playlist status */
playlist_item_t
*
p_node
;
/**< requested node to play from */
playlist_item_t
*
p_item
;
/**< requested item to play in the node */
...
...
src/playlist/thread.c
View file @
8fed9f21
...
...
@@ -523,8 +523,10 @@ static void *Thread ( void *data )
if
(
p_sys
->
killed
)
break
;
/* THE END */
const
int
status
=
p_sys
->
request
.
b_request
?
p_sys
->
request
.
i_status
:
p_sys
->
status
.
i_status
;
int
status
=
p_sys
->
status
.
i_status
;
if
(
p_sys
->
request
.
b_request
)
status
=
(
p_sys
->
request
.
p_item
||
p_sys
->
request
.
p_node
)
?
PLAYLIST_RUNNING
:
PLAYLIST_STOPPED
;
/* Destroy any video display if the playlist is supposed to stop */
if
(
status
==
PLAYLIST_STOPPED
...
...
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