[vlc-commits] access_jack: remove redundant casts

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


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

access_jack: remove redundant casts

Also fix indentation.

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

 modules/access/jack.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/access/jack.c b/modules/access/jack.c
index 694f9c5b97..a4fed98a59 100644
--- a/modules/access/jack.c
+++ b/modules/access/jack.c
@@ -332,26 +332,26 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
     /* Special for access_demux */
     case DEMUX_CAN_PAUSE:
     case DEMUX_CAN_SEEK:
-        pb = (bool *)va_arg( args, bool * );
+        pb = va_arg( args, bool * );
         *pb = true;
         return VLC_SUCCESS;
 
     case DEMUX_SET_PAUSE_STATE:
         return VLC_SUCCESS;
     case DEMUX_CAN_CONTROL_PACE:
-        pb = ( bool* )va_arg( args, bool * );
+        pb = va_arg( args, bool * );
         *pb = var_GetBool( p_demux, "jack-input-use-vlc-pace" );
         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 =  date_Get(&p_sys->pts);
-            return VLC_SUCCESS;
+        pi64 = va_arg( args, int64_t * );
+        *pi64 = date_Get(&p_sys->pts);
+        return VLC_SUCCESS;
 
     /* TODO implement others */
     default:



More information about the vlc-commits mailing list