[vlmc-devel] VmemRenderer: Rename vmemUnlock to vmemDisplay

Yikai Lu git at videolan.org
Sun Apr 17 09:16:09 CEST 2016


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Tue Apr 12 22:09:33 2016 +0900| [f51eea8d153410fa51c5182a61ae47f496c5474c] | committer: Hugo Beauzée-Luyssen

VmemRenderer: Rename vmemUnlock to vmemDisplay

Since vmemUnlock is not really a unlock callback, it should be renamed.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> https://code.videolan.org/videolan/vlmc/commit/f51eea8d153410fa51c5182a61ae47f496c5474c
---

 src/Backend/VLC/VLCVmemRenderer.cpp | 4 ++--
 src/Backend/VLC/VLCVmemRenderer.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Backend/VLC/VLCVmemRenderer.cpp b/src/Backend/VLC/VLCVmemRenderer.cpp
index 58544ba..ab228e9 100644
--- a/src/Backend/VLC/VLCVmemRenderer.cpp
+++ b/src/Backend/VLC/VLCVmemRenderer.cpp
@@ -43,7 +43,7 @@ VmemRenderer::VmemRenderer( VLCBackend* backend, VLCSource *source , ISourceRend
         nullptr,
         // Display:
         [this]( void* picture ) {
-            vmemUnlock( picture );
+            vmemDisplay( picture );
         }
     );
     if ( m_mediaPlayer.setAudioOutput( "dummy" ) == false )
@@ -85,7 +85,7 @@ VmemRenderer::vmemLock( void **planes)
 }
 
 void
-VmemRenderer::vmemUnlock( void* picture )
+VmemRenderer::vmemDisplay( void* picture )
 {
     QMutexLocker lock( &m_mutex );
     Q_UNUSED( picture );
diff --git a/src/Backend/VLC/VLCVmemRenderer.h b/src/Backend/VLC/VLCVmemRenderer.h
index b7a765e..540c09e 100644
--- a/src/Backend/VLC/VLCVmemRenderer.h
+++ b/src/Backend/VLC/VLCVmemRenderer.h
@@ -51,7 +51,7 @@ public:
 
 private:
     void*    vmemLock( void **planes );
-    void     vmemUnlock( void* picture );
+    void     vmemDisplay( void* picture );
 
 private:
     uint8_t*        m_snapshot;



More information about the Vlmc-devel mailing list