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
1d6a4026
Commit
1d6a4026
authored
Jul 19, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stream.c: fixed seeking near the end of a stream.
parent
245e5824
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/input/stream.c
src/input/stream.c
+5
-1
No files found.
src/input/stream.c
View file @
1d6a4026
...
@@ -1028,6 +1028,7 @@ static int AStreamRefillStream( stream_t *s )
...
@@ -1028,6 +1028,7 @@ static int AStreamRefillStream( stream_t *s )
int
i_toread
=
int
i_toread
=
__MIN
(
p_sys
->
stream
.
i_used
,
STREAM_CACHE_TRACK_SIZE
-
__MIN
(
p_sys
->
stream
.
i_used
,
STREAM_CACHE_TRACK_SIZE
-
(
tk
->
i_end
-
tk
->
i_start
-
p_sys
->
stream
.
i_offset
)
);
(
tk
->
i_end
-
tk
->
i_start
-
p_sys
->
stream
.
i_offset
)
);
vlc_bool_t
b_read
=
VLC_FALSE
;
int64_t
i_start
,
i_stop
;
int64_t
i_start
,
i_stop
;
if
(
i_toread
<=
0
)
return
VLC_EGENERIC
;
/* EOF */
if
(
i_toread
<=
0
)
return
VLC_EGENERIC
;
/* EOF */
...
@@ -1054,8 +1055,11 @@ static int AStreamRefillStream( stream_t *s )
...
@@ -1054,8 +1055,11 @@ static int AStreamRefillStream( stream_t *s )
}
}
else
if
(
i_read
==
0
)
else
if
(
i_read
==
0
)
{
{
return
VLC_EGENERIC
;
if
(
!
b_read
)
return
VLC_EGENERIC
;
return
VLC_SUCCESS
;
}
}
b_read
=
VLC_TRUE
;
/* Update end */
/* Update end */
tk
->
i_end
+=
i_read
;
tk
->
i_end
+=
i_read
;
...
...
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