From ff5e9f544deedb6ee6cdaba3e6daa75f082e40ca Mon Sep 17 00:00:00 2001 From: kraxel Date: Mon, 25 Jun 2007 09:42:15 +0000 Subject: fix --- common/vbi-dvb.c | 6 +++--- 1 file 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); -- cgit v1.2.1