Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
27eefb90
Commit
27eefb90
authored
Dec 07, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
projectm: randomly choose the first preset or projectM will always take the same.
parent
3df02ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/visualization/projectm.cpp
modules/visualization/projectm.cpp
+3
-2
No files found.
modules/visualization/projectm.cpp
View file @
27eefb90
...
...
@@ -34,6 +34,7 @@
#include <vlc_vout.h>
#include <vlc_vout_wrapper.h>
#include <vlc_filter.h>
#include <vlc_rand.h>
#include <libprojectM/projectM.hpp>
...
...
@@ -370,8 +371,8 @@ static void *Thread( void *p_data )
vlc_sem_post
(
&
p_sys
->
ready
);
/*
TODO: Give to projectm the name of the input
p_sys->p_projectm->
projectM_setTitle( "" ); */
/*
Choose a preset randomly or projectM will always show the first one */
p_sys
->
p_projectm
->
selectPreset
(
(
unsigned
)
vlc_mrand48
()
%
p_sys
->
p_projectm
->
getPlaylistSize
()
);
/* */
for
(
;;
)
...
...
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