Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
cd469ede
Commit
cd469ede
authored
Jul 03, 2016
by
David
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: Cancel resume dialog as well in case current input ends
parent
e9361438
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
modules/gui/macosx/InputManager.m
modules/gui/macosx/InputManager.m
+4
-0
modules/gui/macosx/ResumeDialogController.m
modules/gui/macosx/ResumeDialogController.m
+3
-0
modules/gui/macosx/VLCPlaylist.m
modules/gui/macosx/VLCPlaylist.m
+0
-2
No files found.
modules/gui/macosx/InputManager.m
View file @
cd469ede
...
...
@@ -29,6 +29,7 @@
#import "MainWindow.h"
#import "VLCPlaylist.h"
#import "VLCPlaylistInfo.h"
#import "ResumeDialogController.h"
#import "TrackSynchronization.h"
#import "VideoView.h"
...
...
@@ -199,6 +200,9 @@ static int InputEvent(vlc_object_t *p_this, const char *psz_var,
object:
nil
];
}
// Cancel pending resume dialogs
[[[
VLCMain
sharedInstance
]
resumeDialog
]
cancel
];
input_thread_t
*
p_input_changed
=
NULL
;
// object is hold here and released then it is dead
...
...
modules/gui/macosx/ResumeDialogController.m
View file @
cd469ede
...
...
@@ -129,6 +129,9 @@
-
(
void
)
cancel
{
if
(
!
[
self
isWindowLoaded
])
return
;
if
(
o_countdown_timer
!=
nil
)
{
[
o_countdown_timer
invalidate
];
o_countdown_timer
=
nil
;
...
...
modules/gui/macosx/VLCPlaylist.m
View file @
cd469ede
...
...
@@ -867,8 +867,6 @@
-
(
void
)
continuePlaybackWhereYouLeftOff
:(
input_thread_t
*
)
p_input_thread
{
[[[
VLCMain
sharedInstance
]
resumeDialog
]
cancel
];
NSDictionary
*
recentlyPlayedFiles
=
[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
@"recentlyPlayedMedia"
];
if
(
!
recentlyPlayedFiles
)
return
;
...
...
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