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
ea5c435f
Commit
ea5c435f
authored
Dec 09, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: dvdnav: add chapters seekpoints timings
parent
3254502d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
modules/access/dvdnav.c
modules/access/dvdnav.c
+8
-5
No files found.
modules/access/dvdnav.c
View file @
ea5c435f
...
...
@@ -1003,13 +1003,11 @@ static void DemuxTitles( demux_t *p_demux )
uint64_t
i_title_length
;
#if defined(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS)
uint64_t
*
p_chapters_time
;
uint64_t
*
p_chapters_time
=
NULL
;
i_chapters
=
dvdnav_describe_title_chapters
(
p_sys
->
dvdnav
,
i
,
&
p_chapters_time
,
&
i_title_length
);
if
(
i_chapters
>
0
)
free
(
p_chapters_time
);
else
if
(
i_chapters
<
1
)
i_title_length
=
0
;
#else
if
(
dvdnav_get_number_of_parts
(
p_sys
->
dvdnav
,
i
,
&
i_chapters
)
!=
DVDNAV_STATUS_OK
)
...
...
@@ -1021,9 +1019,14 @@ static void DemuxTitles( demux_t *p_demux )
for
(
int
j
=
0
;
j
<
__MAX
(
i_chapters
,
1
);
j
++
)
{
s
=
vlc_seekpoint_New
();
#if defined(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS)
s
->
i_time_offset
=
p_chapters_time
[
j
]
*
1000
/
90
;
#endif
TAB_APPEND
(
t
->
i_seekpoint
,
t
->
seekpoint
,
s
);
}
#if defined(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS)
free
(
p_chapters_time
);
#endif
TAB_APPEND
(
p_sys
->
i_title
,
p_sys
->
title
,
t
);
}
}
...
...
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