Commit 7e765ed1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove legacy casts

parent d601ddbb
......@@ -1884,7 +1884,7 @@ static int AccessControl( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "dshow-caching" ) * 1000;
*pi_64 = var_GetInteger( p_access, "dshow-caching" ) * 1000;
break;
/* */
......@@ -1924,7 +1924,7 @@ static int DemuxControl( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_PTS_DELAY:
pi64 = (int64_t*)va_arg( args, int64_t * );
*pi64 = (int64_t)var_GetInteger( p_demux, "dshow-caching" ) * 1000;
*pi64 = var_GetInteger( p_demux, "dshow-caching" ) * 1000;
return VLC_SUCCESS;
case DEMUX_GET_TIME:
......
......@@ -292,7 +292,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case ACCESS_GET_PTS_DELAY:
*va_arg( args, int64_t * )
= (int64_t)var_GetInteger( p_access, "dv-caching" ) * 1000;
= var_GetInteger( p_access, "dv-caching" ) * 1000;
break;
/* */
......
......@@ -728,7 +728,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "dvb-caching" ) * 1000;
*pi_64 = var_GetInteger( p_access, "dvb-caching" ) * 1000;
break;
/* */
......
......@@ -426,7 +426,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_PTS_DELAY:
pi64 = (int64_t*)va_arg( args, int64_t * );
*pi64 = (int64_t)var_GetInteger( p_demux, "dvdread-caching" )*1000;
*pi64 = var_GetInteger( p_demux, "dvdread-caching" )*1000;
return VLC_SUCCESS;
/* TODO implement others */
......
......@@ -595,7 +595,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "ftp-caching" ) * INT64_C(1000);
*pi_64 = var_GetInteger( p_access, "ftp-caching" ) * INT64_C(1000);
break;
/* */
......
......@@ -1074,7 +1074,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "http-caching" ) * 1000;
*pi_64 = var_GetInteger( p_access, "http-caching" ) * 1000;
break;
/* */
......
......@@ -364,8 +364,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_PTS_DELAY:
pi64 = ( int64_t* )va_arg( args, int64_t * );
*pi64 = ( int64_t )var_GetInteger( p_demux, "jack-input-caching" )
* 1000;
*pi64 = var_GetInteger( p_demux, "jack-input-caching" ) * 1000;
return VLC_SUCCESS;
case DEMUX_GET_TIME:
......
......@@ -290,7 +290,7 @@ static int Control (access_t *p_access, int query, va_list args)
case ACCESS_GET_PTS_DELAY:
{
int delay_ms = var_CreateGetInteger (p_access, "file-caching");
int64_t delay_ms = var_CreateGetInteger (p_access, "file-caching");
*va_arg(args, int64_t *) = delay_ms * INT64_C (1000);
return VLC_SUCCESS;
}
......
......@@ -250,7 +250,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "mms-caching" ) * INT64_C(1000);
*pi_64 = var_GetInteger( p_access, "mms-caching" ) * INT64_C(1000);
break;
case ACCESS_GET_PRIVATE_ID_STATE:
......
......@@ -253,7 +253,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "mms-caching" ) * INT64_C(1000);
*pi_64 = var_GetInteger( p_access, "mms-caching" ) * INT64_C(1000);
break;
case ACCESS_GET_PRIVATE_ID_STATE:
......
......@@ -970,7 +970,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "pvr-caching" ) * 1000;
*pi_64 = var_GetInteger( p_access, "pvr-caching" ) * 1000;
break;
/* */
......
......@@ -332,7 +332,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case ACCESS_GET_PTS_DELAY:
*va_arg( args, int64_t * ) =
(int64_t)var_GetInteger(p_access,"realrtsp-caching")*1000;
var_GetInteger(p_access,"realrtsp-caching")*1000;
break;
/* */
......
......@@ -301,7 +301,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_PTS_DELAY:
pi64 = (int64_t*)va_arg( args, int64_t * );
*pi64 = (int64_t)var_GetInteger( p_demux, "screen-caching" ) *1000;
*pi64 = var_GetInteger( p_demux, "screen-caching" ) *1000;
return VLC_SUCCESS;
case DEMUX_GET_TIME:
......
......@@ -309,7 +309,7 @@ static int Control( access_t* p_access, int i_query, va_list args )
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t* );
*pi_64 = (int64_t)var_GetInteger( p_access, "sftp-caching" ) * INT64_C(1000);
*pi_64 = var_GetInteger( p_access, "sftp-caching" ) * INT64_C(1000);
break;
case ACCESS_SET_PAUSE_STATE:
......
......@@ -335,7 +335,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case ACCESS_GET_PTS_DELAY:
*va_arg( args, int64_t * )
= (int64_t)var_GetInteger( p_access, "smb-caching" ) * 1000;
= var_GetInteger( p_access, "smb-caching" ) * 1000;
break;
case ACCESS_SET_PAUSE_STATE:
......
......@@ -187,7 +187,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger( p_access, "tcp-caching" ) * INT64_C(1000);
*pi_64 = var_GetInteger( p_access, "tcp-caching" ) * INT64_C(1000);
break;
/* */
......
......@@ -205,7 +205,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = (int64_t)var_GetInteger(p_access,"udp-caching") * 1000;
*pi_64 = var_GetInteger(p_access,"udp-caching") * 1000;
break;
/* */
......
......@@ -444,7 +444,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_PTS_DELAY:
pi64 = (int64_t*)va_arg( args, int64_t * );
*pi64 = (int64_t)var_GetInteger( p_demux, "v4l-caching" ) * 1000;
*pi64 = var_GetInteger( p_demux, "v4l-caching" ) * 1000;
return VLC_SUCCESS;
case DEMUX_GET_TIME:
......
......@@ -257,7 +257,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
case ACCESS_GET_PTS_DELAY:
*va_arg( args, int64_t * )
= (int64_t)var_GetInteger(p_access,"vcd-caching") * 1000;
= var_GetInteger(p_access,"vcd-caching") * 1000;
break;
/* */
......
......@@ -1476,7 +1476,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case DEMUX_GET_PTS_DELAY:
pi64 = (int64_t*)va_arg( args, int64_t * );
*pi64 = (int64_t)var_GetInteger( p_demux, "rtsp-caching" ) * 1000;
*pi64 = var_GetInteger( p_demux, "rtsp-caching" ) * 1000;
return VLC_SUCCESS;
default:
......
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