]> git.sesse.net Git - vlc/commitdiff
Do not lock the audio buffer while rendering a frame in projectM.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 13 Dec 2009 12:33:42 +0000 (13:33 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 13 Dec 2009 12:52:37 +0000 (13:52 +0100)
modules/visualization/projectm.cpp

index 2e173b3c3ce6b3bc8fff09980a73df35fabd2e3d..260fe7d3a84239b55a4dccf8b67db16d06c4ffc8 100644 (file)
@@ -340,9 +340,10 @@ static void *Thread( void *p_data )
                                                    p_sys->i_nb_samples );
             p_sys->i_nb_samples = 0;
         }
-        p_sys->p_projectm->renderFrame();
         vlc_mutex_unlock( &p_sys->lock );
 
+        p_sys->p_projectm->renderFrame();
+
         if( !vout_opengl_Lock(gl) )
         {
             vout_opengl_Swap( gl );