[vlc-commits] dshow: remove redundant casts

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


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

dshow: remove redundant casts

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

 modules/access/dshow/dshow.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp
index dbd0f0345e..d42ec0871e 100644
--- a/modules/access/dshow/dshow.cpp
+++ b/modules/access/dshow/dshow.cpp
@@ -1893,12 +1893,12 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
     case STREAM_CAN_FASTSEEK:
     case STREAM_CAN_PAUSE:
     case STREAM_CAN_CONTROL_PACE:
-        pb_bool = (bool*)va_arg( args, bool* );
+        pb_bool = va_arg( args, bool * );
         *pb_bool = false;
         break;
 
     case STREAM_GET_PTS_DELAY:
-        pi_64 = (int64_t*)va_arg( args, int64_t * );
+        pi_64 = va_arg( args, int64_t * );
         *pi_64 =
             INT64_C(1000) * var_InheritInteger( p_access, "live-caching" );
         break;
@@ -1942,18 +1942,18 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
     case DEMUX_CAN_SEEK:
     case DEMUX_SET_PAUSE_STATE:
     case DEMUX_CAN_CONTROL_PACE:
-        pb = (bool*)va_arg( args, bool * );
+        pb = va_arg( args, bool * );
         *pb = false;
         return VLC_SUCCESS;
 
     case DEMUX_GET_PTS_DELAY:
-        pi64 = (int64_t*)va_arg( args, int64_t * );
+        pi64 = va_arg( args, int64_t * );
         *pi64 =
             INT64_C(1000) * var_InheritInteger( p_demux, "live-caching" );
         return VLC_SUCCESS;
 
     case DEMUX_GET_TIME:
-        pi64 = (int64_t*)va_arg( args, int64_t * );
+        pi64 = va_arg( args, int64_t * );
         *pi64 = mdate() - p_sys->i_start;
         return VLC_SUCCESS;
 



More information about the vlc-commits mailing list