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
15060644
Commit
15060644
authored
Mar 01, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: better handling of the seekpoint numbers
parent
3ae0db5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+16
-13
No files found.
modules/demux/mkv.cpp
View file @
15060644
...
...
@@ -1459,20 +1459,23 @@ static void UpdateCurrentChapter( demux_t & demux, mtime_t i_pts )
/* 1st, we need to know in which chapter we are */
psz_curr_chapter
=
sys
.
editions
[
sys
.
i_current_edition
].
FindTimecode
(
i_pts
);
if
(
sys
.
psz_current_chapter
!=
NULL
&&
psz_curr_chapter
!=
NULL
&&
sys
.
psz_current_chapter
->
i_seekpoint_num
!=
psz_curr_chapter
->
i_seekpoint_num
)
/* we have moved to a new chapter */
if
(
sys
.
psz_current_chapter
!=
NULL
&&
psz_curr_chapter
!=
NULL
&&
sys
.
psz_current_chapter
!=
psz_curr_chapter
)
{
demux
.
info
.
i_update
|=
INPUT_UPDATE_SEEKPOINT
;
demux
.
info
.
i_seekpoint
=
psz_curr_chapter
->
i_seekpoint_num
-
1
;
}
sys
.
psz_current_chapter
=
psz_curr_chapter
;
if
(
sys
.
psz_current_chapter
->
i_seekpoint_num
!=
psz_curr_chapter
->
i_seekpoint_num
&&
psz_curr_chapter
->
i_seekpoint_num
>
0
)
{
demux
.
info
.
i_update
|=
INPUT_UPDATE_SEEKPOINT
;
demux
.
info
.
i_seekpoint
=
psz_curr_chapter
->
i_seekpoint_num
-
1
;
}
if
(
sys
.
editions
[
sys
.
i_current_edition
].
b_ordered
)
{
/* TODO check if we need to silently seek to a new location in the stream (switch to another chapter) */
/* count the last duration time found for each track in a table (-1 not found, -2 silent) */
/* only seek after each duration >= end timecode of the current chapter */
if
(
sys
.
editions
[
sys
.
i_current_edition
].
b_ordered
)
{
/* TODO check if we need to silently seek to a new location in the stream (switch to another chapter) */
/* count the last duration time found for each track in a table (-1 not found, -2 silent) */
/* only seek after each duration >= end timecode of the current chapter */
}
}
sys
.
psz_current_chapter
=
psz_curr_chapter
;
}
}
...
...
@@ -3074,8 +3077,6 @@ int64_t chapter_item_t::RefreshChapters( bool b_ordered, int64_t i_prev_user_tim
i_user_end_time
=
i_end_time
;
}
i_seekpoint_num
=
title
.
i_seekpoint
;
if
(
b_display_seekpoint
)
{
seekpoint_t
*
sk
=
vlc_seekpoint_New
();
...
...
@@ -3090,6 +3091,8 @@ int64_t chapter_item_t::RefreshChapters( bool b_ordered, int64_t i_prev_user_tim
title
.
seekpoint
[
title
.
i_seekpoint
-
1
]
=
sk
;
}
i_seekpoint_num
=
title
.
i_seekpoint
;
return
i_user_end_time
;
}
...
...
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