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
811ce44f
Commit
811ce44f
authored
Dec 25, 2011
by
Rafaël Carré
Committed by
Jean-Baptiste Kempf
Dec 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: don't crash when file is NULL
e.g. vlc
bluray://0
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
61d512e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/access/bluray.c
modules/access/bluray.c
+5
-3
No files found.
modules/access/bluray.c
View file @
811ce44f
...
@@ -94,7 +94,7 @@ static int blurayOpen( vlc_object_t *object )
...
@@ -94,7 +94,7 @@ static int blurayOpen( vlc_object_t *object )
char
*
pos_title
;
char
*
pos_title
;
int
i_title
=
-
1
;
int
i_title
=
-
1
;
char
bd_path
[
PATH_MAX
];
char
bd_path
[
PATH_MAX
]
=
{
'\0'
}
;
const
char
*
error_msg
=
NULL
;
const
char
*
error_msg
=
NULL
;
if
(
strcmp
(
p_demux
->
psz_access
,
"bluray"
))
{
if
(
strcmp
(
p_demux
->
psz_access
,
"bluray"
))
{
...
@@ -117,8 +117,10 @@ static int blurayOpen( vlc_object_t *object )
...
@@ -117,8 +117,10 @@ static int blurayOpen( vlc_object_t *object )
TAB_INIT
(
p_sys
->
i_title
,
p_sys
->
pp_title
);
TAB_INIT
(
p_sys
->
i_title
,
p_sys
->
pp_title
);
/* store current bd_path */
/* store current bd_path */
if
(
p_demux
->
psz_file
)
{
strncpy
(
bd_path
,
p_demux
->
psz_file
,
sizeof
(
bd_path
));
strncpy
(
bd_path
,
p_demux
->
psz_file
,
sizeof
(
bd_path
));
bd_path
[
PATH_MAX
-
1
]
=
'\0'
;
bd_path
[
PATH_MAX
-
1
]
=
'\0'
;
}
p_sys
->
bluray
=
bd_open
(
bd_path
,
NULL
);
p_sys
->
bluray
=
bd_open
(
bd_path
,
NULL
);
if
(
!
p_sys
->
bluray
)
{
if
(
!
p_sys
->
bluray
)
{
...
...
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