[vlmc-devel] [PATCH 2/5] VLCSource, VmemRenderer: Use const uint8_t* snapshot

Yikai Lu luyikei.qmltu at gmail.com
Tue Apr 12 15:09:31 CEST 2016


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

diff --git a/src/Backend/VLC/VLCSource.h b/src/Backend/VLC/VLCSource.h
index 10a7d08..b2262df 100644
--- a/src/Backend/VLC/VLCSource.h
+++ b/src/Backend/VLC/VLCSource.h
@@ -69,7 +69,7 @@ private:
     unsigned int                m_nbVideoTracks;
     unsigned int                m_nbAudioTracks;
     int64_t                     m_length; //in milliseconds.
-    uint8_t*                    m_snapshot;
+    const uint8_t*              m_snapshot;
     bool                        m_isParsed;
     int64_t                     m_nbFrames;
 };
diff --git a/src/Backend/VLC/VLCVmemRenderer.cpp b/src/Backend/VLC/VLCVmemRenderer.cpp
index d062bbe..8312ecd 100644
--- a/src/Backend/VLC/VLCVmemRenderer.cpp
+++ b/src/Backend/VLC/VLCVmemRenderer.cpp
@@ -68,7 +68,7 @@ VmemRenderer::mediaPlayer()
     return m_mediaPlayer;
 }
 
-uint8_t*
+const uint8_t*
 VmemRenderer::waitSnapshot()
 {
     QMutexLocker lock( &m_mutex );
diff --git a/src/Backend/VLC/VLCVmemRenderer.h b/src/Backend/VLC/VLCVmemRenderer.h
index 89b105d..b7a765e 100644
--- a/src/Backend/VLC/VLCVmemRenderer.h
+++ b/src/Backend/VLC/VLCVmemRenderer.h
@@ -47,7 +47,7 @@ public:
      *  the caller.
      * @return
      */
-    uint8_t *waitSnapshot();
+    const uint8_t *waitSnapshot();
 
 private:
     void*    vmemLock( void **planes );
-- 
1.9.1



More information about the Vlmc-devel mailing list