[vlc-commits] avcapture: remove redundant casts

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


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

avcapture: remove redundant casts

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

 modules/access/avcapture.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/avcapture.m b/modules/access/avcapture.m
index 7d3267b86d..d43cbb28c3 100644
--- a/modules/access/avcapture.m
+++ b/modules/access/avcapture.m
@@ -449,17 +449,17 @@ static int Control(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();
             return VLC_SUCCESS;
 



More information about the vlc-commits mailing list