summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2019-07-29 22:44:55 +0200
committerJan Ekström <jeebjp@gmail.com>2019-09-02 01:19:33 +0300
commitc8424a3bee0ccc1ad25a1001301a78d1c0beaf90 (patch)
treebc1919ef8dbf8c07f4a0ccd05806d58450bc50de /stream
parent66128dec82201ecb9dc9cbeab0350589ea3d988e (diff)
downloadmpv-c8424a3bee0ccc1ad25a1001301a78d1c0beaf90.tar.bz2
mpv-c8424a3bee0ccc1ad25a1001301a78d1c0beaf90.tar.xz
stream_dvb: Increase timeout of streaming read.
It seems some DVB-T2 cards take longer to push out data.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index 28feb4d78f..6f36d0ef68 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -747,7 +747,7 @@ static int dvb_streaming_read(stream_t *stream, char *buffer, int size)
tries --;
pfds[0].fd = fd;
pfds[0].events = POLLIN | POLLPRI;
- if (poll(pfds, 1, 500) <= 0) {
+ if (poll(pfds, 1, 2000) <= 0) {
MP_ERR(stream, "dvb_streaming_read, failed with "
"errno %d when reading %d bytes\n", errno, size - pos);
errno = 0;