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
d1b18e94
Commit
d1b18e94
authored
Aug 11, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export title length in dvdnav access_demux.
You need a recent enough libdvdnav. It is related to #4021.
parent
6759cca2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
configure.ac
configure.ac
+3
-0
modules/access/dvdnav.c
modules/access/dvdnav.c
+19
-6
No files found.
configure.ac
View file @
d1b18e94
...
...
@@ -1944,6 +1944,9 @@ then
AC_CHECK_LIB(dvdnav, dvdnav_get_video_resolution,
AC_DEFINE(HAVE_DVDNAV_GET_VIDEO_RESOLUTION, 1, [Define if you have dvdnav_get_video_resolution.]),
[], [${LIBS_dvdnav}])
AC_CHECK_LIB(dvdnav, dvdnav_describe_title_chapters,
AC_DEFINE(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS, 1, [Define if you have dvdnav_describe_title_chapters.]),
[], [${LIBS_dvdnav}])
fi
fi
...
...
modules/access/dvdnav.c
View file @
d1b18e94
...
...
@@ -998,13 +998,26 @@ static void DemuxTitles( demux_t *p_demux )
dvdnav_get_number_of_titles
(
p_sys
->
dvdnav
,
&
i_titles
);
for
(
i
=
1
;
i
<=
i_titles
;
i
++
)
{
int32_t
i_chapters
=
0
;
int
j
;
dvdnav_get_number_of_parts
(
p_sys
->
dvdnav
,
i
,
&
i_chapters
);
int32_t
i_chapters
;
uint64_t
i_title_length
;
#if defined(HAVE_DVDNAV_DESCRIBE_TITLE_CHAPTERS)
uint64_t
*
p_chapters_time
;
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
i_title_length
=
0
;
#else
if
(
dvdnav_get_number_of_parts
(
p_sys
->
dvdnav
,
i
,
&
i_chapters
)
!=
DVDNAV_STATUS_OK
)
i_chapters
=
0
;
i_title_length
=
0
;
#endif
t
=
vlc_input_title_New
();
for
(
j
=
0
;
j
<
__MAX
(
i_chapters
,
1
);
j
++
)
t
->
i_length
=
i_title_length
*
1000
/
90
;
for
(
int
j
=
0
;
j
<
__MAX
(
i_chapters
,
1
);
j
++
)
{
s
=
vlc_seekpoint_New
();
TAB_APPEND
(
t
->
i_seekpoint
,
t
->
seekpoint
,
s
);
...
...
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