Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
f63b7617
Commit
f63b7617
authored
Jan 07, 2015
by
Felix Paul Kühne
Browse files
app delegate: update media list in background to speed-up launch
parent
232f6b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCAppDelegate.m
View file @
f63b7617
...
...
@@ -138,7 +138,7 @@
if
(
theError
.
code
!=
noErr
)
APLog
(
@"saving the file failed (%li): %@"
,
(
long
)
theError
.
code
,
theError
.
localizedDescription
);
[
self
updateMediaList
];
[
self
performSelectorInBackground
:
@selector
(
updateMediaList
)
withObject
:
nil
];
}
else
if
([
url
.
scheme
isEqualToString
:
@"vlc-x-callback"
]
||
[
url
.
host
isEqualToString
:
@"x-callback-url"
])
{
// URL confirmes to the x-callback-url specification
// vlc-x-callback://x-callback-url/action?param=value&x-success=callback
...
...
@@ -223,7 +223,7 @@
-
(
void
)
applicationDidBecomeActive
:(
UIApplication
*
)
application
{
[[
MLMediaLibrary
sharedMediaLibrary
]
updateMediaDatabase
];
[
self
updateMediaList
];
[
self
performSelectorInBackground
:
@selector
(
updateMediaList
)
withObject
:
nil
];
}
-
(
void
)
applicationWillTerminate
:(
UIApplication
*
)
application
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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