Commit 4f921a59 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fill NULL-deref in jumping forward

Close #5446
parent 3a7131fb
......@@ -882,7 +882,7 @@ void InputManager::setRate( int new_rate )
void InputManager::jumpFwd()
{
int i_interval = var_InheritInteger( p_input, "short-jump-size" );
if( i_interval > 0 )
if( i_interval > 0 && hasInput() )
{
mtime_t val = CLOCK_FREQ * i_interval;
var_SetTime( p_input, "time-offset", val );
......@@ -892,7 +892,7 @@ void InputManager::jumpFwd()
void InputManager::jumpBwd()
{
int i_interval = var_InheritInteger( p_input, "short-jump-size" );
if( i_interval > 0 )
if( i_interval > 0 && hasInput() )
{
mtime_t val = -CLOCK_FREQ * i_interval;
var_SetTime( p_input, "time-offset", val );
......
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