[vlc-commits] decklink: remove redundant casts

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


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

decklink: remove redundant casts

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

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

diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp
index 872a4bdaa7..a0a1a62851 100644
--- a/modules/access/decklink.cpp
+++ b/modules/access/decklink.cpp
@@ -700,17 +700,17 @@ static int Control(demux_t *demux, int query, va_list args)
         case DEMUX_CAN_PAUSE:
         case DEMUX_CAN_SEEK:
         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(demux, "live-caching");
             return VLC_SUCCESS;
 
         case DEMUX_GET_TIME:
-            pi64 = (int64_t*)va_arg(args, int64_t *);
+            pi64 = va_arg(args, int64_t *);
             vlc_mutex_lock(&sys->pts_lock);
             *pi64 = sys->last_pts;
             vlc_mutex_unlock(&sys->pts_lock);



More information about the vlc-commits mailing list