[vlc-commits] dash: Don't use void* for pointer arithmetic

Hugo Beauzée-Luyssen git at videolan.org
Fri Mar 23 14:35:40 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Mar 23 14:35:09 2012 +0100| [3e7eea533be07bc2e98107ec5d17848b8ddd0771] | committer: Hugo Beauzée-Luyssen

dash: Don't use void* for pointer arithmetic

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

 modules/stream_filter/dash/dash.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/stream_filter/dash/dash.cpp b/modules/stream_filter/dash/dash.cpp
index 98123c0..b503f27 100644
--- a/modules/stream_filter/dash/dash.cpp
+++ b/modules/stream_filter/dash/dash.cpp
@@ -81,7 +81,7 @@ struct stream_sys_t
         bool                                isLive;
 };
 
-static int  Read            (stream_t *p_stream, void *p_buffer, unsigned int i_len);
+static int  Read            (stream_t *p_stream, void *p_ptr, unsigned int i_len);
 static int  Peek            (stream_t *p_stream, const uint8_t **pp_peek, unsigned int i_peek);
 static int  Control         (stream_t *p_stream, int i_query, va_list args);
 
@@ -160,10 +160,11 @@ static void Close(vlc_object_t *p_obj)
 /*****************************************************************************
  * Callbacks:
  *****************************************************************************/
-static int  Read            (stream_t *p_stream, void *p_buffer, unsigned int i_len)
+static int  Read            (stream_t *p_stream, void *p_ptr, unsigned int i_len)
 {
     stream_sys_t        *p_sys          = (stream_sys_t *) p_stream->p_sys;
     dash::DASHManager   *p_dashManager  = p_sys->p_dashManager;
+    uint8_t             *p_buffer       = (uint8_t*)p_ptr;
     int                 i_ret           = 0;
     int                 i_read          = 0;
 



More information about the vlc-commits mailing list