mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-21 07:24:15 +02:00
hotkeys: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
Easier to read and more explicit.
This commit is contained in:
parent
468e3c8053
commit
09d07968d6
@ -712,7 +712,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
|
|||||||
case ACTIONID_SUBDELAY_DOWN:
|
case ACTIONID_SUBDELAY_DOWN:
|
||||||
case ACTIONID_SUBDELAY_UP:
|
case ACTIONID_SUBDELAY_UP:
|
||||||
{
|
{
|
||||||
vlc_tick_t diff = (i_action == ACTIONID_SUBDELAY_UP) ? 50000 : -50000;
|
vlc_tick_t diff = (i_action == ACTIONID_SUBDELAY_UP) ? VLC_TICK_FROM_MS(50) : VLC_TICK_FROM_MS(-50);
|
||||||
if( p_input )
|
if( p_input )
|
||||||
{
|
{
|
||||||
vlc_value_t val;
|
vlc_value_t val;
|
||||||
@ -742,7 +742,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
|
|||||||
case ACTIONID_AUDIODELAY_DOWN:
|
case ACTIONID_AUDIODELAY_DOWN:
|
||||||
case ACTIONID_AUDIODELAY_UP:
|
case ACTIONID_AUDIODELAY_UP:
|
||||||
{
|
{
|
||||||
vlc_tick_t diff = (i_action == ACTIONID_AUDIODELAY_UP) ? 50000 : -50000;
|
vlc_tick_t diff = (i_action == ACTIONID_AUDIODELAY_UP) ? VLC_TICK_FROM_MS(50) : VLC_TICK_FROM_MS(-50);
|
||||||
if( p_input )
|
if( p_input )
|
||||||
{
|
{
|
||||||
vlc_tick_t i_delay = var_GetInteger( p_input, "audio-delay" )
|
vlc_tick_t i_delay = var_GetInteger( p_input, "audio-delay" )
|
||||||
|
Loading…
Reference in New Issue
Block a user