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
40bcff3b
Commit
40bcff3b
authored
May 19, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: save time on item destruction
Ref #5315
parent
8fc62fef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+10
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
40bcff3b
...
...
@@ -31,6 +31,7 @@
#endif
#include "input_manager.hpp"
#include "recents.hpp"
#include <vlc_keys.h>
#include <vlc_url.h>
#include <vlc_strings.h>
...
...
@@ -134,6 +135,15 @@ void InputManager::delInput()
if
(
!
p_input
)
return
;
msg_Dbg
(
p_intf
,
"IM: Deleting the input"
);
/* Save time / position */
float
f_pos
=
var_GetFloat
(
p_input
,
"position"
);
int64_t
i_time
=
var_GetTime
(
p_input
,
"time"
);
int
i_length
=
var_GetTime
(
p_input
,
"length"
)
/
CLOCK_FREQ
;
if
(
f_pos
<
0.05
||
f_pos
>
0.95
||
i_length
<
60
)
{
i_time
=
-
1
;
}
RecentsMRL
::
getInstance
(
p_intf
)
->
setTime
(
p_item
->
psz_uri
,
i_time
);
delCallbacks
();
i_old_playing_status
=
END_S
;
p_item
=
NULL
;
...
...
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