Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
0dce21c6
Commit
0dce21c6
authored
Jul 21, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decomp: avoid unreliable waitall mode of net_Read()
parent
62e3bc5e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/stream_filter/decomp.c
modules/stream_filter/decomp.c
+6
-7
No files found.
modules/stream_filter/decomp.c
View file @
0dce21c6
...
...
@@ -237,16 +237,15 @@ static int Peek (stream_t *stream, const uint8_t **pbuf, unsigned int len)
if
((
p_sys
->
peeked
=
peeked
)
==
NULL
)
return
0
;
if
(
curlen
<
len
)
while
(
curlen
<
len
)
{
ssize_t
val
=
net_Read
(
stream
,
fd
,
NULL
,
peeked
->
p_buffer
+
curlen
,
len
-
curlen
,
tru
e
);
if
(
val
>
=
0
)
{
len
-
curlen
,
fals
e
);
if
(
val
<
=
0
)
break
;
curlen
+=
val
;
peeked
->
i_buffer
=
curlen
;
}
}
*
pbuf
=
peeked
->
p_buffer
;
return
curlen
;
}
...
...
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