aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkraxel <kraxel>2007-06-25 09:42:15 (GMT)
committerkraxel <kraxel>2007-06-25 09:42:15 (GMT)
commitff5e9f544deedb6ee6cdaba3e6daa75f082e40ca (patch)
tree4120d0dfccb35199a344a376577759489a5a9536
parent8d9e8533080a798cb7214ff2e0704957eb9d74fa (diff)
fix
-rw-r--r--common/vbi-dvb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/vbi-dvb.c b/common/vbi-dvb.c
index 16c60d1..fd43982 100644
--- a/common/vbi-dvb.c
+++ b/common/vbi-dvb.c
@@ -106,7 +106,7 @@ static int dvb_payload(struct vbi_capture_dvb *dvb,
return slices;
}
-static int dvb_wait(int fd, struct timeval *timeout)
+static int dvb_wait(int fd, struct timeval *timeout, int debug)
{
struct timeval tv = *timeout;
int rc;
@@ -120,7 +120,7 @@ static int dvb_wait(int fd, struct timeval *timeout)
perror("dvb-vbi: select");
return -1;
case 0:
- if (dvb->debug)
+ if (debug)
fprintf(stderr,"dvb-vbi: timeout\n");
return -1;
default:
@@ -164,7 +164,7 @@ static int dvb_read(vbi_capture *cap,
int ret = 0;
int rc;
- if (0 != dvb_wait(dvb->fd,timeout))
+ if (0 != dvb_wait(dvb->fd,timeout,dvb->debug))
return -1;
rc = read(dvb->fd, dvb->buffer + dvb->bbytes,
sizeof(dvb->buffer) - dvb->bbytes);

Privacy Policy