[vlc-commits] mms: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:49:00 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:27:08 2017 +0300| [ac0c646ef0614adb9dda0b02696bbf5193bd6e74] | committer: Rémi Denis-Courmont
mms: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac0c646ef0614adb9dda0b02696bbf5193bd6e74
---
modules/access/mms/mmsh.c | 14 +++++++-------
modules/access/mms/mmstu.c | 14 +++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/modules/access/mms/mmsh.c b/modules/access/mms/mmsh.c
index 96ce1825ac..1cd220b5a9 100644
--- a/modules/access/mms/mmsh.c
+++ b/modules/access/mms/mmsh.c
@@ -189,18 +189,18 @@ static int Control( access_t *p_access, int i_query, va_list args )
switch( i_query )
{
case STREAM_CAN_SEEK:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = !p_sys->b_broadcast;
break;
case STREAM_CAN_FASTSEEK:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = false;
break;
case STREAM_CAN_PAUSE:
case STREAM_CAN_CONTROL_PACE:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = true;
break;
@@ -214,14 +214,14 @@ static int Control( access_t *p_access, int i_query, va_list args )
}
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, "network-caching" );
break;
case STREAM_GET_PRIVATE_ID_STATE:
- i_int = (int)va_arg( args, int );
- pb_bool = (bool *)va_arg( args, bool * );
+ i_int = va_arg( args, int );
+ pb_bool = va_arg( args, bool * );
if( (i_int < 0) || (i_int > 127) )
return VLC_EGENERIC;
@@ -230,7 +230,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case STREAM_SET_PRIVATE_ID_STATE:
{
- i_int = (int)va_arg( args, int );
+ i_int = va_arg( args, int );
b_bool = (bool)va_arg( args, int );
int i_cat;
if( i_int > 127 )
diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index ae1992070d..d694fd6da1 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -220,22 +220,22 @@ static int Control( access_t *p_access, int i_query, va_list args )
switch( i_query )
{
case STREAM_CAN_SEEK:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = p_sys->b_seekable;
break;
case STREAM_CAN_FASTSEEK:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = false;
break;
case STREAM_CAN_PAUSE:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = true;
break;
case STREAM_CAN_CONTROL_PACE:
- pb_bool = (bool*)va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
#if 0 /* Disable for now until we have a clock synchro algo
* which works with something else than MPEG over UDP */
@@ -251,13 +251,13 @@ static int Control( access_t *p_access, int i_query, va_list args )
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, "network-caching" );
break;
case STREAM_GET_PRIVATE_ID_STATE:
- i_int = (int)va_arg( args, int );
+ i_int = va_arg( args, int );
pb_bool = (bool *)va_arg( args, bool * );
if( i_int < 0 || i_int > 127 )
@@ -267,7 +267,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case STREAM_SET_PRIVATE_ID_STATE:
{
- i_int = (int)va_arg( args, int );
+ i_int = va_arg( args, int );
b_bool = (bool)va_arg( args, int );
int i_cat;
if( i_int > 127 )
More information about the vlc-commits
mailing list