Commit 0c9f902f authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Jean-Baptiste Kempf

projectm: randomly choose the first preset or projectM will always take the same.

(cherry picked from commit 27eefb90fcc90240adaa1cfee81be68f8a727295)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent fc0ddff6
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <vlc_vout.h> #include <vlc_vout.h>
#include <vlc_vout_wrapper.h> #include <vlc_vout_wrapper.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#include <vlc_rand.h>
#include <libprojectM/projectM.hpp> #include <libprojectM/projectM.hpp>
...@@ -370,8 +371,8 @@ static void *Thread( void *p_data ) ...@@ -370,8 +371,8 @@ static void *Thread( void *p_data )
vlc_sem_post( &p_sys->ready ); vlc_sem_post( &p_sys->ready );
/* TODO: Give to projectm the name of the input /* Choose a preset randomly or projectM will always show the first one */
p_sys->p_projectm->projectM_setTitle( "" ); */ p_sys->p_projectm->selectPreset( (unsigned)vlc_mrand48() % p_sys->p_projectm->getPlaylistSize() );
/* */ /* */
for( ;; ) for( ;; )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment