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
26a669a9
Commit
26a669a9
authored
Oct 17, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bluray: correctly select the main title
This should fix the usual playback issues we had so far.
parent
7c8209d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
modules/access/bluray.c
modules/access/bluray.c
+15
-1
No files found.
modules/access/bluray.c
View file @
26a669a9
...
...
@@ -88,7 +88,7 @@ static int blurayOpen( vlc_object_t *object )
access_sys_t
*
p_sys
;
char
*
pos_title
;
int
i_title
=
0
;
int
i_title
=
-
1
;
char
bd_path
[
PATH_MAX
];
if
(
strcmp
(
p_access
->
psz_access
,
"bluray"
)
)
{
...
...
@@ -157,6 +157,20 @@ static int bluraySetTitle(access_t *p_access, int i_title)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
unsigned
int
i_nb_titles
=
bd_get_titles
(
p_sys
->
bluray
,
TITLES_RELEVANT
);
/* Looking for the main title, ie the longest duration */
if
(
i_title
==
-
1
)
{
uint64_t
duration
=
0
;
for
(
unsigned
int
i
=
0
;
i
<
i_nb_titles
;
i
++
)
{
BLURAY_TITLE_INFO
*
info
=
bd_get_title_info
(
p_sys
->
bluray
,
i
);
if
(
info
->
duration
>
duration
)
{
i_title
=
i
;
duration
=
info
->
duration
;
}
}
}
/* Select Blu-Ray title */
if
(
bd_select_title
(
p_access
->
p_sys
->
bluray
,
i_title
)
==
0
)
{
msg_Err
(
p_access
,
"cannot select bd title '%d'"
,
p_access
->
info
.
i_title
);
...
...
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