The following trivial patch makes the output of the "vbi" test utility unbuffered, which is more useful for testing and debugging than having it line buffered.

Bolek
--- vbi.c       2005-08-22 18:09:55.000000000 -0400
+++ vbi.c.new   2005-08-28 19:53:50.000000000 -0400
@@ -435,6 +435,8 @@
                return 1;
        }
 
+        setbuf(stdout, NULL);
+
        ioctl(fh, VIDIOC_G_STD, &std);
        fmt.service_set = (std & V4L2_STD_NTSC) ? IVTV_SLICED_CAPTION_525 :
                                  IVTV_SLICED_VPS |IVTV_SLICED_TELETEXT_B | 
IVTV_SLICED_WSS_625;

Reply via email to