[vlc-commits] adaptive: remove redundant casts

Rémi Denis-Courmont git at videolan.org
Wed Apr 19 19:47:35 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:13:12 2017 +0300| [c713c164c30e42b1323d161107ce51f13099dadd] | committer: Rémi Denis-Courmont

adaptive: remove redundant casts

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c713c164c30e42b1323d161107ce51f13099dadd
---

 modules/demux/adaptive/plumbing/FakeESOut.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp b/modules/demux/adaptive/plumbing/FakeESOut.cpp
index a7b99c138a..9d95758b47 100644
--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp
@@ -376,10 +376,10 @@ int FakeESOut::esOutControl_Callback(es_out_t *fakees, int i_query, va_list args
         {
             int i_group;
             if( i_query == ES_OUT_SET_GROUP_PCR )
-                i_group = static_cast<int>(va_arg( args, int ));
+                i_group = va_arg( args, int );
             else
                 i_group = 0;
-            int64_t  pcr = static_cast<int64_t>(va_arg( args, int64_t ));
+            int64_t  pcr = va_arg( args, int64_t );
             pcr += me->getTimestampOffset();
             AbstractCommand *command = me->commandsqueue->factory()->createEsOutControlPCRCommand( i_group, pcr );
             if( likely(command) )
@@ -393,7 +393,7 @@ int FakeESOut::esOutControl_Callback(es_out_t *fakees, int i_query, va_list args
         case ES_OUT_SET_GROUP_META:
         {
             static_cast<void>(va_arg( args, int )); /* ignore group */
-            const vlc_meta_t *p_meta = static_cast<const vlc_meta_t *>(va_arg( args, const vlc_meta_t * ));
+            const vlc_meta_t *p_meta = va_arg( args, const vlc_meta_t * );
             AbstractCommand *command = me->commandsqueue->factory()->createEsOutMetaCommand( -1, p_meta );
             if( likely(command) )
             {
@@ -407,7 +407,7 @@ int FakeESOut::esOutControl_Callback(es_out_t *fakees, int i_query, va_list args
         case ES_OUT_GET_ES_STATE:
         {
             static_cast<void>(va_arg( args, es_out_id_t * ));
-            bool *pb = static_cast<bool *>(va_arg( args, bool * ));
+            bool *pb = va_arg( args, bool * );
             *pb = true;
             // ft
         }



More information about the vlc-commits mailing list