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
9ef79c68
Commit
9ef79c68
authored
Dec 24, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: fix infinite loop while clearing the playlist
parent
576d36bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/playlist/thread.c
src/playlist/thread.c
+5
-4
No files found.
src/playlist/thread.c
View file @
9ef79c68
...
...
@@ -253,6 +253,10 @@ static playlist_item_t *NextItem( playlist_t *p_playlist )
{
playlist_private_t
*
p_sys
=
pl_priv
(
p_playlist
);
playlist_item_t
*
p_new
=
NULL
;
bool
requested
=
p_sys
->
request
.
b_request
;
/* Clear the request */
p_sys
->
request
.
b_request
=
false
;
/* Handle quickly a few special cases */
/* No items to play */
...
...
@@ -263,11 +267,8 @@ static playlist_item_t *NextItem( playlist_t *p_playlist )
}
/* Start the real work */
if
(
p_sys
->
request
.
b_request
)
if
(
requested
)
{
/* Clear the request */
p_sys
->
request
.
b_request
=
false
;
p_new
=
p_sys
->
request
.
p_item
;
if
(
p_new
==
NULL
&&
p_sys
->
request
.
p_node
==
NULL
)
...
...
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