vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Apr 19 20:40:29 2017 +0300| [80290375de97928c63b245bfe3037397a6bb68d4] | committer: Rémi Denis-Courmont
ttml: remove redundant casts > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80290375de97928c63b245bfe3037397a6bb68d4 --- modules/demux/ttml.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c index f51569b7bb..6ea1120ccb 100644 --- a/modules/demux/ttml.c +++ b/modules/demux/ttml.c @@ -216,11 +216,11 @@ static int Control( demux_t* p_demux, int i_query, va_list args ) *va_arg( args, bool * ) = true; return VLC_SUCCESS; case DEMUX_GET_TIME: - pi64 = (int64_t*)va_arg( args, int64_t * ); + pi64 = va_arg( args, int64_t * ); *pi64 = p_sys->i_next_demux_time; return VLC_SUCCESS; case DEMUX_SET_TIME: - i64 = (int64_t)va_arg( args, int64_t ); + i64 = va_arg( args, int64_t ); if( p_sys->times.i_count ) { tt_time_t t = tt_time_Create( i64 - VLC_TS_0 ); @@ -232,12 +232,12 @@ static int Control( demux_t* p_demux, int i_query, va_list args ) } break; case DEMUX_SET_NEXT_DEMUX_TIME: - i64 = (int64_t)va_arg( args, int64_t ); + i64 = va_arg( args, int64_t ); p_sys->i_next_demux_time = i64; p_sys->b_slave = true; return VLC_SUCCESS; case DEMUX_GET_LENGTH: - pi64 = (int64_t*)va_arg( args, int64_t * ); + pi64 = va_arg( args, int64_t * ); if( p_sys->times.i_count ) { tt_time_t t = tt_time_Sub( p_sys->times.p_array[p_sys->times.i_count - 1], @@ -247,7 +247,7 @@ static int Control( demux_t* p_demux, int i_query, va_list args ) } break; case DEMUX_GET_POSITION: - pf = (double*)va_arg( args, double * ); + pf = va_arg( args, double * ); if( p_sys->times.i_current >= p_sys->times.i_count ) { *pf = 1.0; @@ -263,7 +263,7 @@ static int Control( demux_t* p_demux, int i_query, va_list args ) } return VLC_SUCCESS; case DEMUX_SET_POSITION: - f = (double)va_arg( args, double ); + f = va_arg( args, double ); if( p_sys->times.i_count ) { i64 = f * tt_time_Convert( &p_sys->times.p_array[p_sys->times.i_count - 1] ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
