Commit 1971e071 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: resume only for files

Close #11721 #11761

(cherry picked from commit 528a16ff6499c782635a167e93b8031c9f090519)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a8831b7b
...@@ -128,6 +128,8 @@ void InputManager::setInput( input_thread_t *_p_input ) ...@@ -128,6 +128,8 @@ void InputManager::setInput( input_thread_t *_p_input )
emit rateChanged( var_GetFloat( p_input, "rate" ) ); emit rateChanged( var_GetFloat( p_input, "rate" ) );
/* Get Saved Time */ /* Get Saved Time */
if( p_item->i_type == ITEM_TYPE_FILE )
{
int i_time = RecentsMRL::getInstance( p_intf )->time( p_item->psz_uri ); int i_time = RecentsMRL::getInstance( p_intf )->time( p_item->psz_uri );
if( i_time > 0 && if( i_time > 0 &&
!var_GetFloat( p_input, "run-time" ) && !var_GetFloat( p_input, "run-time" ) &&
...@@ -146,6 +148,7 @@ void InputManager::setInput( input_thread_t *_p_input ) ...@@ -146,6 +148,7 @@ void InputManager::setInput( input_thread_t *_p_input )
playlist_Play( THEPL ); playlist_Play( THEPL );
} }
} }
}
else else
{ {
p_item = NULL; p_item = NULL;
......
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