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
76c0e0f7
Commit
76c0e0f7
authored
Apr 09, 2014
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When the current title fail, try the next one
Arccos FTW Ref #6649
parent
85365c63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
modules/access/dvdread.c
modules/access/dvdread.c
+14
-8
No files found.
modules/access/dvdread.c
View file @
76c0e0f7
...
...
@@ -475,12 +475,15 @@ static int Demux( demux_t *p_demux )
/* End of title */
if
(
p_sys
->
i_cur_cell
>=
p_sys
->
p_cur_pgc
->
nr_of_cells
)
{
if
(
p_sys
->
i_title
+
1
>=
p_sys
->
i_titles
)
int
k
=
p_sys
->
i_title
;
/* Looking for a not broken title */
while
(
k
<
p_sys
->
i_titles
&&
DvdReadSetArea
(
p_demux
,
++
k
,
0
,
-
1
)
!=
VLC_SUCCESS
)
{
return
0
;
/* EOF */
msg_Err
(
p_demux
,
"Failed next title, trying another: %i"
,
k
);
if
(
k
>=
p_sys
->
i_titles
)
return
0
;
// EOF
}
DvdReadSetArea
(
p_demux
,
p_sys
->
i_title
+
1
,
0
,
-
1
);
}
if
(
p_sys
->
i_pack_len
>=
1024
)
...
...
@@ -500,12 +503,15 @@ static int Demux( demux_t *p_demux )
if
(
p_sys
->
i_cur_cell
>=
p_sys
->
p_cur_pgc
->
nr_of_cells
)
{
if
(
p_sys
->
i_title
+
1
>=
p_sys
->
i_titles
)
int
k
=
p_sys
->
i_title
;
/* Looking for a not broken title */
while
(
k
<
p_sys
->
i_titles
&&
DvdReadSetArea
(
p_demux
,
++
k
,
0
,
-
1
)
!=
VLC_SUCCESS
)
{
return
0
;
/* EOF */
msg_Err
(
p_demux
,
"Failed next title, trying another: %i"
,
k
);
if
(
k
>=
p_sys
->
i_titles
)
return
0
;
// EOF
}
DvdReadSetArea
(
p_demux
,
p_sys
->
i_title
+
1
,
0
,
-
1
);
}
/*
...
...
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