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
52e0eeb8
Commit
52e0eeb8
authored
Jan 24, 2018
by
Carola
Browse files
VLCNetworkServer*: fix order in medialists
parent
44f32f2a
Changes
3
Hide whitespace changes
Inline
Side-by-side
SharedSources/ServerBrowsing/HTTP/VLCNetworkServerBrowserSharedLibrary.m
View file @
52e0eeb8
...
...
@@ -67,9 +67,8 @@
{
VLCMediaList
*
mediaList
=
[[
VLCMediaList
alloc
]
init
];
@synchronized
(
_items
)
{
NSUInteger
count
=
_items
.
count
;
for
(
NSInteger
i
=
count
-
1
;
i
>=
0
;
i
--
)
{
VLCMedia
*
media
=
[
_items
[
i
]
media
];
for
(
id
<
VLCNetworkServerBrowserItem
>
browseritem
in
_items
)
{
VLCMedia
*
media
=
[
browseritem
media
];
if
(
media
)
[
mediaList
addMedia
:
media
];
}
...
...
SharedSources/ServerBrowsing/Plex/VLCNetworkServerBrowserPlex.m
View file @
52e0eeb8
...
...
@@ -125,10 +125,9 @@
{
NSMutableArray
*
mediaArray
;
@synchronized
(
_items
)
{
NSUInteger
count
=
_items
.
count
;
mediaArray
=
[
NSMutableArray
arrayWithCapacity
:
count
];
for
(
NSInteger
i
=
count
-
1
;
i
>=
0
;
i
--
)
{
VLCMedia
*
media
=
[
_items
[
i
]
media
];
mediaArray
=
[
NSMutableArray
new
];
for
(
id
<
VLCNetworkServerBrowserItem
>
browseritem
in
_items
)
{
VLCMedia
*
media
=
[
browseritem
media
];
if
(
media
)
[
mediaArray
addObject
:
media
];
}
...
...
SharedSources/ServerBrowsing/UPnP/VLCNetworkServerBrowserUPnP.m
View file @
52e0eeb8
...
...
@@ -358,9 +358,8 @@
{
VLCMediaList
*
mediaList
=
[[
VLCMediaList
alloc
]
init
];
@synchronized
(
_items
)
{
NSUInteger
count
=
_items
.
count
;
for
(
NSInteger
i
=
count
-
1
;
i
>=
0
;
i
--
)
{
VLCMedia
*
media
=
[
_items
[
i
]
media
];
for
(
id
<
VLCNetworkServerBrowserItem
>
browseritem
in
_items
)
{
VLCMedia
*
media
=
[
browseritem
media
];
if
(
media
)
[
mediaList
addMedia
:
media
];
}
...
...
Carola
@caro
mentioned in commit
adc010c0
·
Jan 25, 2018
mentioned in commit
adc010c0
mentioned in commit adc010c03a1348af07dfaafefbb144e9f6442711
Toggle commit list
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