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
8c9e80fb
Commit
8c9e80fb
authored
Apr 23, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: avoid NULL deref on error
parent
3fa1290c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lib/media.c
lib/media.c
+4
-5
No files found.
lib/media.c
View file @
8c9e80fb
...
...
@@ -113,15 +113,14 @@ static void input_item_subitem_added( const vlc_event_t *p_event,
p_event
->
u
.
input_item_subitem_added
.
p_new_child
);
/* Add this to our media list */
if
(
!
p_md
->
p_subitems
)
if
(
p_md
->
p_subitems
==
NULL
)
{
p_md
->
p_subitems
=
libvlc_media_list_new
(
p_md
->
p_libvlc_instance
);
if
(
unlikely
(
p_md
->
p_subitems
==
NULL
)
)
abort
();
libvlc_media_list_set_media
(
p_md
->
p_subitems
,
p_md
);
}
if
(
p_md
->
p_subitems
)
{
libvlc_media_list_add_media
(
p_md
->
p_subitems
,
p_md_child
);
}
/* Construct the event */
event
.
type
=
libvlc_MediaSubItemAdded
;
...
...
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