Commit 7b456613 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

decomp: use vlc_read_i11e() as appropriate

parent 9d669888
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment