[vlc-devel] [PATCH 2/2] access/http: Control: remove redundant casts

Filip Roséen filip at atch.se
Wed Mar 22 04:38:22 CET 2017


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

diff --git a/modules/access/http.c b/modules/access/http.c
index 8bda86d978..084b3584e8 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -578,18 +578,18 @@ 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 = 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;
 
         /* */
         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;
-- 
2.12.0


More information about the vlc-devel mailing list