[vlc-commits] mtp: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:49:04 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:28:28 2017 +0300| [40606d22bfdb79354a49846b98b18006e99aaa6a] | committer: Rémi Denis-Courmont
mtp: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=40606d22bfdb79354a49846b98b18006e99aaa6a
---
modules/access/mtp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access/mtp.c b/modules/access/mtp.c
index 97acf51eb4..395c1365ed 100644
--- a/modules/access/mtp.c
+++ b/modules/access/mtp.c
@@ -200,13 +200,13 @@ static int Control( access_t *p_access, int i_query, va_list args )
{
case STREAM_CAN_SEEK:
case STREAM_CAN_FASTSEEK:
- pb_bool = ( bool* )va_arg( args, bool* );
+ pb_bool = va_arg( args, bool * );
*pb_bool = true;
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;
@@ -224,7 +224,7 @@ 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, "file-caching" );
break;
More information about the vlc-commits
mailing list