Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
efbf668d
Commit
efbf668d
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
(cherry picked from commit 0dd9d856c522526594e0903336fc7b1db362b071)
parent
7b28d2e7
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 @
efbf668d
...
...
@@ -42,31 +42,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