[vlc-commits] rdp: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:47:27 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:11:33 2017 +0300| [c0addfa8dfb8cad0f8a36be385ec6e3e72236479] | committer: Rémi Denis-Courmont
rdp: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c0addfa8dfb8cad0f8a36be385ec6e3e72236479
---
modules/access/rdp.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/modules/access/rdp.c b/modules/access/rdp.c
index c9bcd6f3b0..21d2166a84 100644
--- a/modules/access/rdp.c
+++ b/modules/access/rdp.c
@@ -291,38 +291,38 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_CAN_CONTROL_PACE:
case DEMUX_CAN_CONTROL_RATE:
case DEMUX_HAS_UNSUPPORTED_META:
- pb = (bool*)va_arg( args, bool * );
+ pb = va_arg( args, bool * );
*pb = false;
return VLC_SUCCESS;
case DEMUX_CAN_RECORD:
- pb = (bool*)va_arg( args, bool * );
+ pb = va_arg( args, bool * );
*pb = true;
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_demux->p_sys->i_starttime;
return VLC_SUCCESS;
case DEMUX_GET_LENGTH:
- pi64 = (int64_t*)va_arg( args, int64_t * );
+ pi64 = va_arg( args, int64_t * );
*pi64 = 0;
return VLC_SUCCESS;
case DEMUX_GET_FPS:
- p_dbl = (double*)va_arg( args, double * );
+ p_dbl = va_arg( args, double * );
*p_dbl = p_demux->p_sys->f_fps;
return VLC_SUCCESS;
case DEMUX_GET_META:
- p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* );
+ p_meta = va_arg( args, vlc_meta_t * );
vlc_meta_Set( p_meta, vlc_meta_Title, p_demux->psz_location );
return VLC_SUCCESS;
More information about the vlc-commits
mailing list