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
b9dc1b7d
Commit
b9dc1b7d
authored
Aug 24, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/playlist: add missing error handling
(cherry picked from commit
5feeba27
)
parent
efbf668d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
modules/gui/macosx/playlist.m
modules/gui/macosx/playlist.m
+5
-6
No files found.
modules/gui/macosx/playlist.m
View file @
b9dc1b7d
...
@@ -1106,15 +1106,14 @@
...
@@ -1106,15 +1106,14 @@
o_one_item
=
[
o_array
objectAtIndex
:
i_item
];
o_one_item
=
[
o_array
objectAtIndex
:
i_item
];
p_input
=
[
self
createItem
:
o_one_item
];
p_input
=
[
self
createItem
:
o_one_item
];
if
(
!
p_input
)
if
(
!
p_input
)
{
continue
;
continue
;
}
/* Add the item */
/* Add the item */
/* FIXME: playlist_AddInput() can fail */
int
returnValue
=
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_INSERT
,
i_position
==
-
1
?
PLAYLIST_END
:
i_position
+
i_item
,
b_usingPlaylist
,
pl_Locked
);
if
(
returnValue
!=
VLC_SUCCESS
)
{
playlist_AddInput
(
p_playlist
,
p_input
,
PLAYLIST_INSERT
,
i_position
==
-
1
?
PLAYLIST_END
:
i_position
+
i_item
,
b_usingPlaylist
,
vlc_gc_decref
(
p_input
);
pl_Locked
);
continue
;
}
if
(
i_item
==
0
&&
!
b_enqueue
)
if
(
i_item
==
0
&&
!
b_enqueue
)
{
{
...
...
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