const char *psz_action;
int i_action;
int i_key;
-
- /* hotkey accounting information */
- mtime_t i_delta_date;/*< minimum delta time between two key presses */
- mtime_t i_last_date; /*< last date key was pressed */
- int i_times; /*< n times pressed within delta date*/
} *p_hotkeys;
};
{
input_thread_t *p_input;
vout_thread_t *p_last_vout;
- int i_times = 0;
int i_action = GetAction( p_intf );
if( i_action == -1 )
break; /* die */
- for( i = 0; p_hotkeys[i].psz_action != NULL; i++ )
- {
- if( p_hotkeys[i].i_action == i_action )
- {
- i_times = p_hotkeys[i].i_times;
- /* times key pressed within max. delta time */
- p_hotkeys[i].i_times = 0;
- break;
- }
- }
-
/* Update the input */
PL_LOCK;
p_input = p_playlist->p_input;
#define SET_TIME( a, b ) \
i_interval = config_GetInt( p_input, a "-jump-size" ); \
if( i_interval > 0 ) { \
- val.i_time = ( (mtime_t)(i_interval * b) * 1000000L \
- * ((mtime_t)(1 << i_times))); \
+ val.i_time = (mtime_t)(i_interval * b) * 1000000L; \
var_Set( p_input, "time-offset", val ); \
DisplayPosition( p_intf, p_vout, p_input ); \
}