Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e1a9f330
Commit
e1a9f330
authored
Feb 13, 2014
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Feb 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: use bd_get_main_title()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
e4dabd8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
modules/access/bluray.c
modules/access/bluray.c
+9
-1
No files found.
modules/access/bluray.c
View file @
e1a9f330
...
...
@@ -1138,13 +1138,19 @@ static void blurayUpdateTitleInfo(demux_t *p_demux, input_title_t *t, int i_titl
static
void
blurayInitTitles
(
demux_t
*
p_demux
,
int
menu_titles
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
#if BLURAY_VERSION < BLURAY_VERSION_CODE(0,5,0)
int64_t
duration
=
0
;
#endif
/* get and set the titles */
unsigned
i_title
=
menu_titles
;
if
(
!
p_sys
->
b_menu
)
if
(
!
p_sys
->
b_menu
)
{
i_title
=
bd_get_titles
(
p_sys
->
bluray
,
TITLES_RELEVANT
,
60
);
#if BLURAY_VERSION >= BLURAY_VERSION_CODE(0,5,0)
p_sys
->
i_longest_title
=
bd_get_main_title
(
p_sys
->
bluray
);
#endif
}
for
(
unsigned
int
i
=
0
;
i
<
i_title
;
i
++
)
{
input_title_t
*
t
=
vlc_input_title_New
();
...
...
@@ -1154,10 +1160,12 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles)
if
(
!
p_sys
->
b_menu
)
{
blurayUpdateTitleInfo
(
p_demux
,
t
,
i
,
-
1
);
#if BLURAY_VERSION < BLURAY_VERSION_CODE(0,5,0)
if
(
t
->
i_length
>
duration
)
{
duration
=
t
->
i_length
;
p_sys
->
i_longest_title
=
i
;
}
#endif
}
else
if
(
i
==
0
)
{
t
->
psz_name
=
strdup
(
_
(
"Top Menu"
));
}
else
if
(
i
==
i_title
-
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