Commit 941ddc5d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ps: remove redundant casts

parent fefe4d30
...@@ -668,7 +668,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -668,7 +668,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_SUCCESS; return VLC_SUCCESS;
case DEMUX_GET_POSITION: case DEMUX_GET_POSITION:
pf = (double*) va_arg( args, double* ); pf = va_arg( args, double * );
i64 = stream_Size( p_demux->s ) - p_sys->i_start_byte; i64 = stream_Size( p_demux->s ) - p_sys->i_start_byte;
if( i64 > 0 ) if( i64 > 0 )
{ {
...@@ -682,7 +682,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -682,7 +682,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_SUCCESS; return VLC_SUCCESS;
case DEMUX_SET_POSITION: case DEMUX_SET_POSITION:
f = (double) va_arg( args, double ); f = va_arg( args, double );
i64 = stream_Size( p_demux->s ) - p_sys->i_start_byte; i64 = stream_Size( p_demux->s ) - p_sys->i_start_byte;
p_sys->i_current_pts = 0; p_sys->i_current_pts = 0;
p_sys->i_scr = -1; p_sys->i_scr = -1;
...@@ -706,7 +706,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -706,7 +706,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
break; break;
case DEMUX_GET_TIME: case DEMUX_GET_TIME:
pi64 = (int64_t*)va_arg( args, int64_t * ); pi64 = va_arg( args, int64_t * );
if( p_sys->i_time_track_index >= 0 && p_sys->i_current_pts > 0 ) if( p_sys->i_time_track_index >= 0 && p_sys->i_current_pts > 0 )
{ {
*pi64 = p_sys->i_current_pts - p_sys->tk[p_sys->i_time_track_index].i_first_pts; *pi64 = p_sys->i_current_pts - p_sys->tk[p_sys->i_time_track_index].i_first_pts;
...@@ -727,7 +727,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -727,7 +727,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
break; break;
case DEMUX_GET_LENGTH: case DEMUX_GET_LENGTH:
pi64 = (int64_t*)va_arg( args, int64_t * ); pi64 = va_arg( args, int64_t * );
if( p_sys->i_length > 0 ) if( p_sys->i_length > 0 )
{ {
*pi64 = p_sys->i_length; *pi64 = p_sys->i_length;
...@@ -743,7 +743,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -743,7 +743,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
break; break;
case DEMUX_SET_TIME: case DEMUX_SET_TIME:
i64 = (int64_t)va_arg( args, int64_t ); i64 = va_arg( args, int64_t );
if( p_sys->i_time_track_index >= 0 && p_sys->i_current_pts > 0 && p_sys->i_length ) if( p_sys->i_time_track_index >= 0 && p_sys->i_current_pts > 0 && p_sys->i_length )
{ {
i64 -= p_sys->tk[p_sys->i_time_track_index].i_first_pts; i64 -= p_sys->tk[p_sys->i_time_track_index].i_first_pts;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment