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
cd071db6
Commit
cd071db6
authored
Jul 01, 2004
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quit fast when sorting a playlist with 1 or less entries. Fixes a crash when
shuffeling a playlist with 1 entry
parent
f0b9adc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/playlist/sort.c
src/playlist/sort.c
+11
-0
No files found.
src/playlist/sort.c
View file @
cd071db6
...
@@ -49,6 +49,17 @@ int playlist_Sort( playlist_t * p_playlist , int i_mode, int i_type )
...
@@ -49,6 +49,17 @@ int playlist_Sort( playlist_t * p_playlist , int i_mode, int i_type )
p_playlist
->
i_sort
=
i_mode
;
p_playlist
->
i_sort
=
i_mode
;
p_playlist
->
i_order
=
i_type
;
p_playlist
->
i_order
=
i_type
;
/* playlist with one or less items are allways sorted in all
manners, quit fast. */
if
(
p_playlist
->
i_size
<=
1
)
{
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
/* Notify the interfaces, is this necessary? */
var_Set
(
p_playlist
,
"intf-change"
,
val
);
return
VLC_SUCCESS
;
}
if
(
i_mode
==
SORT_RANDOM
)
if
(
i_mode
==
SORT_RANDOM
)
{
{
...
...
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