[vlc-commits] glspectrum: remove no-op

Rémi Denis-Courmont git at videolan.org
Mon Dec 19 00:33:26 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 19 01:14:08 2016 +0200| [6f95126d25a03f135338db5486c4adfbdb66ef1b] | committer: Rémi Denis-Courmont

glspectrum: remove no-op

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6f95126d25a03f135338db5486c4adfbdb66ef1b
---

 modules/visualization/glspectrum.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/visualization/glspectrum.c b/modules/visualization/glspectrum.c
index debe9cc..90e9637 100644
--- a/modules/visualization/glspectrum.c
+++ b/modules/visualization/glspectrum.c
@@ -483,11 +483,7 @@ static void *Thread( void *p_data )
 
         /* Wait to swapp the frame on time. */
         mwait(block->i_pts + (block->i_length / 2));
-        if (!vlc_gl_Lock(gl))
-        {
-            vlc_gl_Swap(gl);
-            vlc_gl_Unlock(gl);
-        }
+        vlc_gl_Swap(gl);
 
 release:
         window_close(&wind_ctx);



More information about the vlc-commits mailing list