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
597e34b8
Commit
597e34b8
authored
Sep 06, 2012
by
Denis Charmet
Committed by
Jean-Baptiste Kempf
Sep 06, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: Fix seek to 0 with a non null time offset
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
4afbaf58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment.cpp
+3
-3
No files found.
modules/demux/mkv/matroska_segment.cpp
View file @
597e34b8
...
...
@@ -761,7 +761,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
#if !defined(WIN32) && !defined(__ANDROID__)
/* Don't try complex seek if we seek to 0 */
if
(
i_date
==
0
)
if
(
i_date
==
0
&&
i_time_offset
==
0
)
{
es_out_Control
(
sys
.
demuxer
.
out
,
ES_OUT_SET_NEXT_DISPLAY_TIME
,
0
);
es_out_Control
(
sys
.
demuxer
.
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
);
...
...
@@ -846,7 +846,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
for
(;;)
{
while
(
i_pts
<
i_date
)
do
{
bool
b_key_picture
;
bool
b_discardable_picture
;
...
...
@@ -889,7 +889,7 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
}
delete
block
;
}
}
while
(
i_pts
<
i_date
);
if
(
b_has_key
||
!
i_idx
)
break
;
...
...
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