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
7b456613
Commit
7b456613
authored
Jun 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decomp: use vlc_read_i11e() as appropriate
parent
9d669888
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/stream_filter/decomp.c
modules/stream_filter/decomp.c
+4
-3
No files found.
modules/stream_filter/decomp.c
View file @
7b456613
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#else
#else
# undef HAVE_VMSPLICE
# undef HAVE_VMSPLICE
#endif
#endif
#include <vlc_interrupt.h>
#include <signal.h>
#include <signal.h>
...
@@ -223,7 +224,7 @@ static int Read (stream_t *stream, void *buf, unsigned int buflen)
...
@@ -223,7 +224,7 @@ static int Read (stream_t *stream, void *buf, unsigned int buflen)
}
}
assert
((
buf
!=
NULL
)
||
(
buflen
==
0
));
assert
((
buf
!=
NULL
)
||
(
buflen
==
0
));
ssize_t
val
=
net_Read
(
stream
,
sys
->
read_fd
,
buf
,
buflen
,
false
);
ssize_t
val
=
vlc_read_i11e
(
sys
->
read_fd
,
buf
,
buflen
);
if
(
val
>
0
)
if
(
val
>
0
)
{
{
sys
->
offset
+=
val
;
sys
->
offset
+=
val
;
...
@@ -261,8 +262,8 @@ static int Peek (stream_t *stream, const uint8_t **pbuf, unsigned int len)
...
@@ -261,8 +262,8 @@ static int Peek (stream_t *stream, const uint8_t **pbuf, unsigned int len)
{
{
ssize_t
val
;
ssize_t
val
;
val
=
net_Read
(
stream
,
sys
->
read_fd
,
val
=
vlc_read_i11e
(
sys
->
read_fd
,
peeked
->
p_buffer
+
curlen
,
peeked
->
p_buffer
+
curlen
,
len
-
curlen
,
false
);
len
-
curlen
);
if
(
val
<=
0
)
if
(
val
<=
0
)
break
;
break
;
curlen
+=
val
;
curlen
+=
val
;
...
...
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