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
c482de12
Commit
c482de12
authored
Feb 27, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #1404
parent
9d349e1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/input/stream.c
src/input/stream.c
+4
-4
No files found.
src/input/stream.c
View file @
c482de12
...
@@ -730,8 +730,8 @@ static int AStreamReadBlock( stream_t *s, void *p_read, int i_read )
...
@@ -730,8 +730,8 @@ static int AStreamReadBlock( stream_t *s, void *p_read, int i_read )
p_sys
->
block
.
i_offset
=
0
;
p_sys
->
block
.
i_offset
=
0
;
p_sys
->
block
.
p_current
=
p_sys
->
block
.
p_current
->
p_next
;
p_sys
->
block
.
p_current
=
p_sys
->
block
.
p_current
->
p_next
;
}
}
/*Get a new block */
/*Get a new block
if needed
*/
if
(
AStreamRefillBlock
(
s
)
)
if
(
!
p_sys
->
block
.
p_current
&&
AStreamRefillBlock
(
s
)
)
{
{
break
;
break
;
}
}
...
@@ -915,13 +915,13 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
...
@@ -915,13 +915,13 @@ static int AStreamSeekBlock( stream_t *s, int64_t i_pos )
else
else
{
{
/* Read enough data */
/* Read enough data */
while
(
p_sys
->
block
.
i_start
+
p_sys
->
block
.
i_size
<
=
i_pos
)
while
(
p_sys
->
block
.
i_start
+
p_sys
->
block
.
i_size
<
i_pos
)
{
{
if
(
AStreamRefillBlock
(
s
)
)
if
(
AStreamRefillBlock
(
s
)
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
while
(
p_sys
->
block
.
p_current
&&
while
(
p_sys
->
block
.
p_current
&&
p_sys
->
i_pos
+
p_sys
->
block
.
p_current
->
i_buffer
<
=
i_pos
)
p_sys
->
i_pos
+
p_sys
->
block
.
p_current
->
i_buffer
<
i_pos
)
{
{
p_sys
->
i_pos
+=
p_sys
->
block
.
p_current
->
i_buffer
;
p_sys
->
i_pos
+=
p_sys
->
block
.
p_current
->
i_buffer
;
p_sys
->
block
.
p_current
=
p_sys
->
block
.
p_current
->
p_next
;
p_sys
->
block
.
p_current
=
p_sys
->
block
.
p_current
->
p_next
;
...
...
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