[vlmc-devel] VLCSource, VmemRenderer: Use const uint8_t* snapshot

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


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

VLCSource, VmemRenderer: Use const uint8_t* snapshot

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

> https://code.videolan.org/videolan/vlmc/commit/8bcd468cb3941382d0f21c6f3d58bde66f9bcfc0
---

 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 f11b195..efbde63 100644
--- a/src/Backend/VLC/VLCVmemRenderer.cpp
+++ b/src/Backend/VLC/VLCVmemRenderer.cpp
@@ -66,7 +66,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 );



More information about the Vlmc-devel mailing list