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
26c68186
Commit
26c68186
authored
Jan 25, 2014
by
Carola
Browse files
check against nil to load icon when albumart is not available
parent
fa10c545
Changes
1
Hide whitespace changes
Inline
Side-by-side
Sources/VLCLocalServerFolderListViewController.m
View file @
26c68186
...
...
@@ -228,7 +228,7 @@
[
cell
setSubtitle
:
[
NSString
stringWithFormat
:
@"%@ (%@)"
,
[
NSByteCountFormatter
stringFromByteCount
:
mediaSize
countStyle
:
NSByteCountFormatterCountStyleFile
],
[
VLCTime
timeWithInt
:
durationInSeconds
*
1000
].
stringValue
]];
[
cell
setIsDirectory
:
NO
];
cell
.
isDownloadable
=
YES
;
if
(
!
[
mediaItem
.
albumArt
isEqualToString
:
NULL
]
)
if
(
mediaItem
.
albumArt
!=
nil
)
[
cell
setIconURL
:[
NSURL
URLWithString
:
mediaItem
.
albumArt
]];
[
cell
setIcon
:[
UIImage
imageNamed
:
@"blank"
]];
cell
.
delegate
=
self
;
...
...
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