Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mohamed Emad
VLC
Commits
42b2aee7
Commit
42b2aee7
authored
7 years ago
by
Steve Lhomme
Browse files
Options
Downloads
Patches
Plain Diff
demux:mkv: unmark the EOF if the seek failed and we're still in usable data
parent
ca60ed72
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/demux/mkv/stream_io_callback.cpp
+9
-0
9 additions, 0 deletions
modules/demux/mkv/stream_io_callback.cpp
with
9 additions
and
0 deletions
modules/demux/mkv/stream_io_callback.cpp
+
9
−
0
View file @
42b2aee7
...
...
@@ -64,7 +64,16 @@ void vlc_stream_io_callback::setFilePointer(int64_t i_offset, seek_mode mode )
}
if
(
i_pos
==
i_current
)
{
if
(
mb_eof
)
{
// if previous setFilePointer() failed we may be back in the available data
i_size
=
stream_Size
(
s
);
if
(
i_size
!=
0
&&
i_pos
<
i_size
)
mb_eof
=
vlc_stream_Seek
(
s
,
i_pos
)
!=
VLC_SUCCESS
;
}
return
;
}
if
(
i_pos
<
0
||
(
(
i_size
=
stream_Size
(
s
)
)
!=
0
&&
i_pos
>=
i_size
)
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment