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
e5e9c944
Commit
e5e9c944
authored
Jun 05, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/dvdnav.c,dvdread.c: don't crash if the DVD can't be decrypted/read.
parent
e46cef82
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
modules/access/dvdnav.c
modules/access/dvdnav.c
+4
-1
modules/access/dvdread.c
modules/access/dvdread.c
+7
-1
No files found.
modules/access/dvdnav.c
View file @
e5e9c944
...
...
@@ -292,7 +292,10 @@ static int Open( vlc_object_t *p_this )
if
(
dvdnav_title_play
(
p_sys
->
dvdnav
,
1
)
!=
DVDNAV_STATUS_OK
)
{
msg_Warn
(
p_demux
,
"cannot set title"
);
msg_Err
(
p_demux
,
"cannot set title (can't decrypt DVD?)"
);
dvdnav_close
(
p_sys
->
dvdnav
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
if
(
dvdnav_menu_call
(
p_sys
->
dvdnav
,
DVD_MENU_Title
)
!=
...
...
modules/access/dvdread.c
View file @
e5e9c944
...
...
@@ -263,7 +263,13 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_angle
=
val
.
i_int
>
0
?
val
.
i_int
:
1
;
DemuxTitles
(
p_demux
,
&
p_sys
->
i_angle
);
DvdReadSetArea
(
p_demux
,
0
,
0
,
p_sys
->
i_angle
);
if
(
DvdReadSetArea
(
p_demux
,
0
,
0
,
p_sys
->
i_angle
)
!=
VLC_SUCCESS
)
{
Close
(
p_this
);
msg_Err
(
p_demux
,
"DvdReadSetArea(0,0,%i) failed (can't decrypt DVD?)"
,
p_sys
->
i_angle
);
return
VLC_EGENERIC
;
}
/* Update default_pts to a suitable value for dvdread access */
var_Create
(
p_demux
,
"dvdread-caching"
,
...
...
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