Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
c0f590a0
Commit
c0f590a0
authored
Dec 21, 2014
by
Felix Paul Kühne
Browse files
thumbnail cache: fix runtime exception (#13128)
parent
2a252c20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCThumbnailsCache.m
View file @
c0f590a0
...
...
@@ -127,8 +127,12 @@ static NSCache *_thumbnailCacheMetadata;
NSUInteger
fileNumber
=
count
>
3
?
3
:
count
;
NSArray
*
episodes
=
[
mediaShow
.
episodes
allObjects
];
NSMutableArray
*
files
=
[[
NSMutableArray
alloc
]
init
];
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
[
files
addObject
:[
episodes
[
x
]
files
].
anyObject
];
for
(
NSUInteger
x
=
0
;
x
<
count
;
x
++
)
{
/* this is a multi-threaded app, so the episode object might be there already,
* but without an assigned file, so we need to check for its existance (#13128) */
if
([
episodes
[
x
]
files
].
anyObject
!=
nil
)
[
files
addObject
:[
episodes
[
x
]
files
].
anyObject
];
}
displayedImage
=
[
self
clusterThumbFromFiles
:
files
andNumber
:
fileNumber
blur
:
NO
];
if
(
displayedImage
)
{
...
...
Write
Preview
Supports
Markdown
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