Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
17390c6f
Commit
17390c6f
authored
Aug 18, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: fix error handling
parent
d760499f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
modules/access/bluray.c
modules/access/bluray.c
+14
-7
No files found.
modules/access/bluray.c
View file @
17390c6f
...
...
@@ -868,16 +868,13 @@ static void blurayInitOverlay(demux_t *p_demux, int plane, int width, int height
assert
(
p_sys
->
p_overlays
[
plane
]
==
NULL
);
p_sys
->
p_overlays
[
plane
]
=
calloc
(
1
,
sizeof
(
**
p_sys
->
p_overlays
));
if
(
unlikely
(
!
p_sys
->
p_overlays
[
plane
]
))
bluray_overlay_t
*
ov
=
calloc
(
1
,
sizeof
(
*
ov
));
if
(
unlikely
(
ov
==
NULL
))
return
;
bluray_overlay_t
*
ov
=
p_sys
->
p_overlays
[
plane
];
subpicture_updater_sys_t
*
p_upd_sys
=
malloc
(
sizeof
(
*
p_upd_sys
));
if
(
unlikely
(
!
p_upd_sys
))
{
if
(
unlikely
(
p_upd_sys
==
NULL
))
{
free
(
ov
);
p_sys
->
p_overlays
[
plane
]
=
NULL
;
return
;
}
/* two references: vout + demux */
...
...
@@ -890,12 +887,22 @@ static void blurayInitOverlay(demux_t *p_demux, int plane, int width, int height
.
pf_destroy
=
subpictureUpdaterDestroy
,
.
p_sys
=
p_upd_sys
,
};
vlc_mutex_init
(
&
ov
->
lock
);
ov
->
p_pic
=
subpicture_New
(
&
updater
);
if
(
ov
->
p_pic
==
NULL
)
{
free
(
p_upd_sys
);
free
(
ov
);
return
;
}
ov
->
p_pic
->
i_original_picture_width
=
width
;
ov
->
p_pic
->
i_original_picture_height
=
height
;
ov
->
p_pic
->
b_ephemer
=
true
;
ov
->
p_pic
->
b_absolute
=
true
;
vlc_mutex_init
(
&
ov
->
lock
);
p_sys
->
p_overlays
[
plane
]
=
ov
;
}
/**
...
...
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