Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2bbc88ce
Commit
2bbc88ce
authored
Jun 22, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX: fix crash when no SD are found
parent
e8ede98d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+3
-3
No files found.
modules/gui/macosx/MainWindow.m
View file @
2bbc88ce
...
...
@@ -227,8 +227,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
SideBarItem
*
internetItem
=
[
SideBarItem
itemWithTitle
:
_NS
(
"INTERNET"
)
identifier
:
@"internet"
];
/* SD subnodes, inspired by the Qt4 intf */
char
**
ppsz_longnames
;
int
*
p_categories
;
char
**
ppsz_longnames
=
NULL
;
int
*
p_categories
=
NULL
;
char
**
ppsz_names
=
vlc_sd_GetNames
(
pl_Get
(
VLCIntf
),
&
ppsz_longnames
,
&
p_categories
);
if
(
!
ppsz_names
)
msg_Err
(
VLCIntf
,
"no sd item found"
);
//TODO
...
...
@@ -239,7 +239,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSMutableArray
*
lanItems
=
[[
NSMutableArray
alloc
]
init
];
NSMutableArray
*
mycompItems
=
[[
NSMutableArray
alloc
]
init
];
NSString
*
o_identifier
;
for
(;
*
ppsz_name
;
ppsz_name
++
,
ppsz_longname
++
,
p_category
++
)
{
for
(;
ppsz_name
&&
*
ppsz_name
;
ppsz_name
++
,
ppsz_longname
++
,
p_category
++
)
{
o_identifier
=
[
NSString
stringWithCString
:
*
ppsz_name
encoding
:
NSUTF8StringEncoding
];
switch
(
*
p_category
)
{
case
SD_CAT_INTERNET
:
...
...
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