Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fb282423
Commit
fb282423
authored
Feb 20, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete unused variable
parent
7def690c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/playlist/control.c
src/playlist/control.c
+0
-2
No files found.
src/playlist/control.c
View file @
fb282423
...
@@ -299,11 +299,9 @@ void ResetCurrentlyPlaying( playlist_t *p_playlist, vlc_bool_t b_random,
...
@@ -299,11 +299,9 @@ void ResetCurrentlyPlaying( playlist_t *p_playlist, vlc_bool_t b_random,
{
{
/* Shuffle the array */
/* Shuffle the array */
srand
(
(
unsigned
int
)
mdate
()
);
srand
(
(
unsigned
int
)
mdate
()
);
int
swap
=
0
;
int
j
;
int
j
;
for
(
j
=
p_playlist
->
current
.
i_size
-
1
;
j
>
0
;
j
--
)
for
(
j
=
p_playlist
->
current
.
i_size
-
1
;
j
>
0
;
j
--
)
{
{
swap
++
;
int
i
=
rand
()
%
(
j
+
1
);
/* between 0 and j */
int
i
=
rand
()
%
(
j
+
1
);
/* between 0 and j */
playlist_item_t
*
p_tmp
;
playlist_item_t
*
p_tmp
;
p_tmp
=
ARRAY_VAL
(
p_playlist
->
current
,
i
);
p_tmp
=
ARRAY_VAL
(
p_playlist
->
current
,
i
);
...
...
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