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
b0469c76
Commit
b0469c76
authored
Jan 16, 2016
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Jan 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: blurayOpen(): use blurayClose() to clean up after an error
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d11e004c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
modules/access/bluray.c
modules/access/bluray.c
+8
-10
No files found.
modules/access/bluray.c
View file @
b0469c76
...
...
@@ -500,16 +500,15 @@ static int blurayOpen(vlc_object_t *object)
/* If we're passed a block device, try to convert it to the mount point. */
FindMountPoint
(
&
p_sys
->
psz_bd_path
);
vlc_mutex_init
(
&
p_sys
->
pl_info_lock
);
vlc_mutex_init
(
&
p_sys
->
bdj_overlay_lock
);
var_AddCallback
(
p_demux
->
p_input
,
"intf-event"
,
onIntfEvent
,
p_demux
);
p_sys
->
bluray
=
bd_open
(
p_sys
->
psz_bd_path
,
NULL
);
if
(
!
p_sys
->
bluray
)
{
free
(
p_sys
->
psz_bd_path
);
free
(
p_sys
);
return
VLC_EGENERIC
;
goto
error
;
}
vlc_mutex_init
(
&
p_sys
->
pl_info_lock
);
vlc_mutex_init
(
&
p_sys
->
bdj_overlay_lock
);
/* Warning the user about AACS/BD+ */
const
BLURAY_DISC_INFO
*
disc_info
=
bd_get_disc_info
(
p_sys
->
bluray
);
...
...
@@ -633,8 +632,6 @@ static int blurayOpen(vlc_object_t *object)
if
(
unlikely
(
p_sys
->
p_out
==
NULL
))
goto
error
;
var_AddCallback
(
p_demux
->
p_input
,
"intf-event"
,
onIntfEvent
,
p_demux
);
blurayResetParser
(
p_demux
);
if
(
!
p_sys
->
p_parser
)
{
msg_Err
(
p_demux
,
"Failed to create TS demuxer"
);
...
...
@@ -672,8 +669,9 @@ static void blurayClose(vlc_object_t *object)
* This will close all the overlays before we release p_vout
* bd_close(NULL) can crash
*/
assert
(
p_sys
->
bluray
);
bd_close
(
p_sys
->
bluray
);
if
(
p_sys
->
bluray
)
{
bd_close
(
p_sys
->
bluray
);
}
blurayReleaseVout
(
p_demux
);
...
...
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