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
0dd9d856
Commit
0dd9d856
authored
Aug 24, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/applescript: add missing error handling
parent
0d86a46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
modules/gui/macosx/applescript.m
modules/gui/macosx/applescript.m
+9
-11
No files found.
modules/gui/macosx/applescript.m
View file @
0dd9d856
...
...
@@ -43,31 +43,29 @@
{
intf_thread_t
*
p_intf
=
VLCIntf
;
playlist_t
*
p_playlist
=
pl_Get
(
p_intf
);
if
(
p_playlist
==
NULL
)
{
return
nil
;
}
if
(
o_urlString
)
{
NSURL
*
o_url
;
input_item_t
*
p_input
;
int
returnValue
;
p_input
=
input_item_New
(
[
o_urlString
fileSystemRepresentation
],
[[[
NSFileManager
defaultManager
]
displayNameAtPath:
o_urlString
]
UTF8String
]
);
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_INSERT
,
PLAYLIST_END
,
true
,
pl_Unlocked
);
if
(
!
p_input
)
return
nil
;
returnValue
=
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_INSERT
,
PLAYLIST_END
,
true
,
pl_Unlocked
);
vlc_gc_decref
(
p_input
);
if
(
returnValue
!=
VLC_SUCCESS
)
return
nil
;
o_url
=
[
NSURL
fileURLWithPath
:
o_urlString
];
if
(
o_url
!=
nil
)
{
[[
NSDocumentController
sharedDocumentController
]
noteNewRecentDocumentURL:
o_url
];
}
[[
NSDocumentController
sharedDocumentController
]
noteNewRecentDocumentURL
:
o_url
];
}
}
return
nil
;
...
...
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