[vlc-commits] dvdnav: remove redundant casts

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


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

dvdnav: remove redundant casts

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

 modules/access/dvdnav.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index 5fbbe0230d..28be76d89f 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -632,7 +632,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             return VLC_SUCCESS;
 
         case DEMUX_SET_TITLE:
-            i = (int)va_arg( args, int );
+            i = va_arg( args, int );
             if( i == 0 && dvdnav_menu_call( p_sys->dvdnav, DVD_MENU_Root )
                   != DVDNAV_STATUS_OK )
             {
@@ -696,7 +696,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
             dvdnav_get_title_string(p_sys->dvdnav, &title_name);
             if( (NULL != title_name) && ('\0' != title_name[0]) )
             {
-                vlc_meta_t *p_meta = (vlc_meta_t*)va_arg( args, vlc_meta_t* );
+                vlc_meta_t *p_meta = va_arg( args, vlc_meta_t* );
                 vlc_meta_Set( p_meta, vlc_meta_Title, title_name );
                 return VLC_SUCCESS;
             }



More information about the vlc-commits mailing list