[vlc-commits] accesstweaks: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:51:06 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:42:50 2017 +0300| [a3b0da4492c4a3de064f5a93aa48b81fd6b1ef50] | committer: Rémi Denis-Courmont
accesstweaks: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3b0da4492c4a3de064f5a93aa48b81fd6b1ef50
---
modules/mux/ogg.c | 6 +++---
modules/mux/wav.c | 6 +++---
modules/stream_filter/accesstweaks.c | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/mux/ogg.c b/modules/mux/ogg.c
index 03789b7054..65146aa82d 100644
--- a/modules/mux/ogg.c
+++ b/modules/mux/ogg.c
@@ -327,17 +327,17 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
switch( i_query )
{
case MUX_CAN_ADD_STREAM_WHILE_MUXING:
- pb_bool = (bool*)va_arg( args, bool * );
+ pb_bool = va_arg( args, bool * );
*pb_bool = true;
return VLC_SUCCESS;
case MUX_GET_ADD_STREAM_WAIT:
- pb_bool = (bool*)va_arg( args, bool * );
+ pb_bool = va_arg( args, bool * );
*pb_bool = true;
return VLC_SUCCESS;
case MUX_GET_MIME:
- ppsz = (char**)va_arg( args, char ** );
+ ppsz = va_arg( args, char ** );
*ppsz = strdup( "application/ogg" );
return VLC_SUCCESS;
diff --git a/modules/mux/wav.c b/modules/mux/wav.c
index b9e3482723..2791777b21 100644
--- a/modules/mux/wav.c
+++ b/modules/mux/wav.c
@@ -135,17 +135,17 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
switch( i_query )
{
case MUX_CAN_ADD_STREAM_WHILE_MUXING:
- pb_bool = (bool*)va_arg( args, bool * );
+ pb_bool = va_arg( args, bool * );
*pb_bool = false;
return VLC_SUCCESS;
case MUX_GET_ADD_STREAM_WAIT:
- pb_bool = (bool*)va_arg( args, bool * );
+ pb_bool = va_arg( args, bool * );
*pb_bool = true;
return VLC_SUCCESS;
case MUX_GET_MIME:
- ppsz = (char**)va_arg( args, char ** );
+ ppsz = va_arg( args, char ** );
*ppsz = strdup( "audio/wav" );
return VLC_SUCCESS;
diff --git a/modules/stream_filter/accesstweaks.c b/modules/stream_filter/accesstweaks.c
index 52b7c6f164..8341cee864 100644
--- a/modules/stream_filter/accesstweaks.c
+++ b/modules/stream_filter/accesstweaks.c
@@ -67,14 +67,14 @@ static int Control( stream_t *p_stream, int i_query, va_list args )
case STREAM_CAN_FASTSEEK:
if( !p_sys->b_fastseek || !p_sys->b_seek )
{
- *((bool*)va_arg( args, bool* )) = false;
+ *va_arg( args, bool* ) = false;
return VLC_SUCCESS;
}
break;
case STREAM_CAN_SEEK:
if( !p_sys->b_seek )
{
- *((bool*)va_arg( args, bool* )) = false;
+ *va_arg( args, bool* ) = false;
return VLC_SUCCESS;
}
break;
More information about the vlc-commits
mailing list