Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
528a16ff
Commit
528a16ff
authored
Aug 13, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: resume only for files
Close #11721 #11761
parent
334c42b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+16
-13
No files found.
modules/gui/qt4/input_manager.cpp
View file @
528a16ff
...
...
@@ -128,22 +128,25 @@ void InputManager::setInput( input_thread_t *_p_input )
emit
rateChanged
(
var_GetFloat
(
p_input
,
"rate"
)
);
/* Get Saved Time */
int
i_time
=
RecentsMRL
::
getInstance
(
p_intf
)
->
time
(
p_item
->
psz_uri
);
if
(
i_time
>
0
&&
!
var_GetFloat
(
p_input
,
"run-time"
)
&&
!
var_GetFloat
(
p_input
,
"start-time"
)
&&
!
var_GetFloat
(
p_input
,
"stop-time"
)
)
if
(
p_item
->
i_type
==
ITEM_TYPE_FILE
)
{
playlist_Pause
(
THEPL
);
int
i_time
=
RecentsMRL
::
getInstance
(
p_intf
)
->
time
(
p_item
->
psz_uri
);
if
(
i_time
>
0
&&
!
var_GetFloat
(
p_input
,
"run-time"
)
&&
!
var_GetFloat
(
p_input
,
"start-time"
)
&&
!
var_GetFloat
(
p_input
,
"stop-time"
)
)
{
playlist_Pause
(
THEPL
);
if
(
QMessageBox
::
question
(
NULL
,
_
(
"Continue playback?"
),
_
(
"Do you want to restart the playback where left off?"
),
QMessageBox
::
Yes
|
QMessageBox
::
No
,
QMessageBox
::
Yes
)
==
QMessageBox
::
Yes
)
var_SetTime
(
p_input
,
"time"
,
(
int64_t
)
i_time
*
1000
);
if
(
QMessageBox
::
question
(
NULL
,
_
(
"Continue playback?"
),
_
(
"Do you want to restart the playback where left off?"
),
QMessageBox
::
Yes
|
QMessageBox
::
No
,
QMessageBox
::
Yes
)
==
QMessageBox
::
Yes
)
var_SetTime
(
p_input
,
"time"
,
(
int64_t
)
i_time
*
1000
);
playlist_Play
(
THEPL
);
playlist_Play
(
THEPL
);
}
}
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment