Commit 7f8fdffe authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fill NULL-deref in jumping forward

Close #5446
(cherry picked from commit 4f921a591453707451bbbf6c2a14f58d3264e2a6)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 15a82188
......@@ -862,7 +862,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 = (mtime_t)(i_interval) * 1000000L;
var_SetTime( p_input, "time-offset", val );
......@@ -872,7 +872,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 = -1 *(mtime_t)(i_interval) * 1000000L;
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