[vlc-devel] commit: Give only once the same PCM buffer to projectM. (Laurent Aimar )
git version control
git at videolan.org
Sun Dec 13 13:53:41 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Dec 13 13:22:05 2009 +0100| [cd5b4fb21722431f656953e1938061561c260275] | committer: Laurent Aimar
Give only once the same PCM buffer to projectM.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd5b4fb21722431f656953e1938061561c260275
---
modules/visualization/projectm.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/visualization/projectm.cpp b/modules/visualization/projectm.cpp
index 42475fd..2e173b3 100644
--- a/modules/visualization/projectm.cpp
+++ b/modules/visualization/projectm.cpp
@@ -335,9 +335,11 @@ static void *Thread( void *p_data )
/* Render the image and swap the buffers */
vlc_mutex_lock( &p_sys->lock );
if( p_sys->i_nb_samples > 0 )
+ {
p_sys->p_projectm->pcm()->addPCMfloat( p_sys->p_buffer,
p_sys->i_nb_samples );
-
+ p_sys->i_nb_samples = 0;
+ }
p_sys->p_projectm->renderFrame();
vlc_mutex_unlock( &p_sys->lock );
More information about the vlc-devel
mailing list