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
6d684f9d
Commit
6d684f9d
authored
May 19, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: better update of the current chapter when seeking (manual or auto)
parent
0196637f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+13
-12
No files found.
modules/demux/mkv.cpp
View file @
6d684f9d
...
...
@@ -2754,6 +2754,7 @@ bool virtual_segment_c::UpdateCurrentToChapter( demux_t & demux )
{
demux_sys_t
&
sys
=
*
demux
.
p_sys
;
chapter_item_c
*
psz_curr_chapter
;
bool
b_has_seeked
=
false
;
/* update current chapter/seekpoint */
if
(
p_editions
->
size
()
)
...
...
@@ -2767,24 +2768,24 @@ bool virtual_segment_c::UpdateCurrentToChapter( demux_t & demux )
if
(
(
*
p_editions
)[
i_current_edition
]
->
b_ordered
)
{
// Leave/Enter up to the link point
if
(
!
psz_curr_chapter
->
EnterAndLeave
(
psz_current_chapter
)
)
b_has_seeked
=
psz_curr_chapter
->
EnterAndLeave
(
psz_current_chapter
);
if
(
!
b_has_seeked
)
{
// only seek if necessary
// only
physically
seek if necessary
if
(
psz_current_chapter
==
NULL
||
(
psz_current_chapter
->
i_end_time
!=
psz_curr_chapter
->
i_start_time
)
)
Seek
(
demux
,
sys
.
i_pts
,
0
,
psz_curr_chapter
);
psz_current_chapter
=
psz_curr_chapter
;
}
}
else
if
(
psz_curr_chapter
->
i_seekpoint_num
>
0
)
if
(
!
b_has_seeked
)
{
psz_current_chapter
=
psz_curr_chapter
;
if
(
psz_curr_chapter
->
i_seekpoint_num
>
0
)
{
demux
.
info
.
i_update
|=
INPUT_UPDATE_TITLE
|
INPUT_UPDATE_SEEKPOINT
;
demux
.
info
.
i_title
=
sys
.
i_current_title
=
i_sys_title
;
demux
.
info
.
i_seekpoint
=
psz_curr_chapter
->
i_seekpoint_num
-
1
;
psz_current_chapter
=
psz_curr_chapter
;
}
else
{
psz_current_chapter
=
psz_curr_chapter
;
}
return
true
;
...
...
@@ -4962,7 +4963,7 @@ void demux_sys_t::JumpTo( virtual_segment_c & vsegment, chapter_item_c * p_chapt
if
(
!
p_chapter
->
Enter
(
true
)
)
{
// jump to the location in the found segment
vsegment
.
Seek
(
demuxer
,
p_chapter
->
i_user_start_time
,
-
1
,
NULL
);
vsegment
.
Seek
(
demuxer
,
p_chapter
->
i_user_start_time
,
-
1
,
p_chapter
);
}
}
...
...
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