From: Hugo Beauzée-Luyssen Date: Fri, 23 Mar 2012 13:35:09 +0000 (+0100) Subject: dash: Don't use void* for pointer arithmetic X-Git-Tag: 2.1.0-git~5023 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3e7eea533be07bc2e98107ec5d17848b8ddd0771;p=vlc dash: Don't use void* for pointer arithmetic --- diff --git a/modules/stream_filter/dash/dash.cpp b/modules/stream_filter/dash/dash.cpp index 98123c034e..b503f278a2 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;