Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
81705747
Commit
81705747
authored
Jul 13, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: add missing sanity check
parent
184723ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
modules/gui/macosx/playlistinfo.m
modules/gui/macosx/playlistinfo.m
+21
-9
No files found.
modules/gui/macosx/playlistinfo.m
View file @
81705747
...
...
@@ -498,8 +498,12 @@ error:
if
(
i_object_id
==
-
1
)
{
vlc_mutex_lock
(
&
p_item
->
lock
);
for
(
int
i
=
0
;
i
<
p_item
->
i_categories
;
i
++
)
{
NSString
*
name
=
[
NSString
stringWithUTF8String
:
p_item
->
pp_categories
[
i
]
->
psz_name
];
VLCInfoTreeItem
*
item
=
[[
VLCInfoTreeItem
alloc
]
NSString
*
name
;
if
(
p_item
->
pp_categories
[
i
]
->
psz_name
)
name
=
[
NSString
stringWithUTF8String
:
p_item
->
pp_categories
[
i
]
->
psz_name
];
else
name
=
@""
;
VLCInfoTreeItem
*
item
=
[[
VLCInfoTreeItem
alloc
]
initWithName:
name
value:
@""
ID:
i
...
...
@@ -514,13 +518,21 @@ error:
vlc_mutex_lock
(
&
p_item
->
lock
);
info_category_t
*
cat
=
p_item
->
pp_categories
[
i_object_id
];
for
(
int
i
=
0
;
i
<
cat
->
i_infos
;
i
++
)
{
NSString
*
name
=
[
NSString
stringWithUTF8String
:
cat
->
pp_infos
[
i
]
->
psz_name
];
NSString
*
value
=
[
NSString
stringWithUTF8String
:
cat
->
pp_infos
[
i
]
->
psz_value
?
:
""
];
VLCInfoTreeItem
*
item
=
[[
VLCInfoTreeItem
alloc
]
initWithName:
name
value:
value
ID:
i
parent:
self
];
NSString
*
name
;
NSString
*
value
;
if
(
cat
->
pp_infos
[
i
]
->
psz_name
!=
NULL
)
name
=
[
NSString
stringWithUTF8String
:
cat
->
pp_infos
[
i
]
->
psz_name
];
else
name
=
@""
;
if
(
cat
->
pp_infos
[
i
]
->
psz_value
!=
NULL
)
value
=
[
NSString
stringWithUTF8String
:
cat
->
pp_infos
[
i
]
->
psz_value
];
else
value
=
@""
;
VLCInfoTreeItem
*
item
=
[[
VLCInfoTreeItem
alloc
]
initWithName:
name
value:
value
ID:
i
parent:
self
];
[
item
autorelease
];
[
_children
addObject
:
item
];
}
...
...
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