[vlc-commits] es: remove redundant casts

Rémi Denis-Courmont git at videolan.org
Wed Apr 19 19:49:49 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:35:28 2017 +0300| [fefe4d3069682bc16327588dd13c021ca808f071] | committer: Rémi Denis-Courmont

es: remove redundant casts

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

 modules/demux/mpeg/es.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/mpeg/es.c b/modules/demux/mpeg/es.c
index 3b5b35faa0..84a58c6d15 100644
--- a/modules/demux/mpeg/es.c
+++ b/modules/demux/mpeg/es.c
@@ -394,12 +394,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
     switch( i_query )
     {
         case DEMUX_HAS_UNSUPPORTED_META:
-            pb_bool = (bool*)va_arg( args, bool* );
+            pb_bool = va_arg( args, bool * );
             *pb_bool = true;
             return VLC_SUCCESS;
 
         case DEMUX_GET_TIME:
-            pi64 = (int64_t*)va_arg( args, int64_t * );
+            pi64 = va_arg( args, int64_t * );
             *pi64 = p_sys->i_pts + p_sys->i_time_offset;
             return VLC_SUCCESS;
 
@@ -426,7 +426,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                     return VLC_EGENERIC;
                 }
 
-                pi64 = (int64_t *)va_arg( args, int64_t * );
+                pi64 = va_arg( args, int64_t * );
                 *pi64 = (p_sys->i_pts + p_sys->i_time_offset) / f_pos;
                 return VLC_SUCCESS;
             }



More information about the vlc-commits mailing list