[vlc-commits] xvideo: remove redundant casts

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


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

xvideo: remove redundant casts

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

 modules/video_output/xcb/xvideo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 14c245c0e9..2f1801b2f3 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -729,13 +729,13 @@ static int Control (vout_display_t *vd, int query, va_list ap)
         if (query == VOUT_DISPLAY_CHANGE_SOURCE_ASPECT
          || query == VOUT_DISPLAY_CHANGE_SOURCE_CROP)
         {
-            source = (const video_format_t *)va_arg (ap, const video_format_t *);
+            source = va_arg(ap, const video_format_t *);
             cfg = vd->cfg;
         }
         else
         {
             source = &vd->source;
-            cfg = (const vout_display_cfg_t*)va_arg (ap, const vout_display_cfg_t *);
+            cfg = va_arg(ap, const vout_display_cfg_t *);
         }
 
         vout_display_place_t place;



More information about the vlc-commits mailing list