Commit ca43babf authored by François Cartegnie's avatar François Cartegnie 🤞

access: dtv: reset errno

fixes erratic error return code
as ret -1/errno is set on timeout,
which can be ret -1 (frontend event only)
and an errno from another call
parent 0714e5ad
......@@ -332,6 +332,7 @@ ssize_t dvb_read (dvb_device_t *d, void *buf, size_t len, int ms)
else
n = 1;
errno = 0;
n = vlc_poll_i11e (ufd, n, ms);
if (n == 0)
errno = EAGAIN;
......
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