[vlc-commits] demux/ttml: removed unnecessary casts

Filip Roséen git at videolan.org
Tue Sep 20 00:59:20 CEST 2016


vlc | branch: master | Filip Roséen <filip at atch.se> | Tue Sep 20 00:55:52 2016 +0200| [deef21dc84c35ab74d11f97ffa80ef7c610c9cb9] | committer: Hugo Beauzée-Luyssen

demux/ttml: removed unnecessary casts

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

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

 modules/demux/ttml.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
index ca9afc4..e21eb16 100644
--- a/modules/demux/ttml.c
+++ b/modules/demux/ttml.c
@@ -358,7 +358,7 @@ static int addToArrayIfNotInside( vlc_array_t* p_array, mtime_t* p_elem )
 {
     if( !isInArray( p_array, p_elem ) )
     {
-        vlc_array_append( p_array, (void*)p_elem );
+        vlc_array_append( p_array, p_elem );
         if( unlikely( p_array->pp_elems[p_array->i_count - 1] == NULL ) )
             return VLC_ENOMEM;
     }
@@ -792,7 +792,7 @@ static void ParseHead( demux_t* p_demux )
         return;
     }
 
-    while( ( i_read = vlc_stream_Read( p_demux->s, (void*)buff, 1024 ) ) > 0 )
+    while( ( i_read = vlc_stream_Read( p_demux->s, buff, 1024 ) ) > 0 )
     {
         ssize_t i_offset = -1;
         // Ensure we can use strstr



More information about the vlc-commits mailing list