Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
13bb59c7
Commit
13bb59c7
authored
May 19, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: restore time where you left off
This copies the MacOS way Close #5315
parent
b70cb5b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+18
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
13bb59c7
...
...
@@ -42,6 +42,7 @@
#include <QFile>
#include <QDir>
#include <QSignalMapper>
#include <QMessageBox>
#include <assert.h>
...
...
@@ -110,6 +111,7 @@ void InputManager::setInput( input_thread_t *_p_input )
msg_Dbg
(
p_intf
,
"IM: Setting an input"
);
vlc_object_hold
(
p_input
);
addCallbacks
();
UpdateStatus
();
UpdateName
();
UpdateArt
();
...
...
@@ -119,6 +121,22 @@ void InputManager::setInput( input_thread_t *_p_input )
p_item
=
input_GetItem
(
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
)
{
THEMIM
->
togglePlayPause
();
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
);
THEMIM
->
togglePlayPause
();
}
}
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