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
d4887e00
Commit
d4887e00
authored
Aug 27, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jump to first title on menu error (workaround #1809)
It will make dvdnav and dvdsimple having the same behaviour.
parent
90ec8083
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/access/dvdnav.c
modules/access/dvdnav.c
+18
-0
No files found.
modules/access/dvdnav.c
View file @
d4887e00
...
...
@@ -166,6 +166,8 @@ static int ProbeDVD( demux_t *, char * );
static
char
*
DemuxGetLanguageCode
(
demux_t
*
p_demux
,
const
char
*
psz_var
);
static
int
ControlInternal
(
demux_t
*
,
int
,
...
);
/*****************************************************************************
* DemuxOpen:
*****************************************************************************/
...
...
@@ -566,6 +568,17 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
}
static
int
ControlInternal
(
demux_t
*
p_demux
,
int
i_query
,
...
)
{
va_list
args
;
int
i_result
;
va_start
(
args
,
i_query
);
i_result
=
Control
(
p_demux
,
i_query
,
args
);
va_end
(
args
);
return
i_result
;
}
/*****************************************************************************
* Demux:
*****************************************************************************/
...
...
@@ -588,6 +601,11 @@ static int Demux( demux_t *p_demux )
{
msg_Warn
(
p_demux
,
"cannot get next block (%s)"
,
dvdnav_err_to_string
(
p_sys
->
dvdnav
)
);
if
(
p_demux
->
info
.
i_title
==
0
)
{
msg_Dbg
(
p_demux
,
"jumping to first title"
);
return
ControlInternal
(
p_demux
,
DEMUX_SET_TITLE
,
1
)
==
VLC_SUCCESS
?
1
:
-
1
;
}
return
-
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