Package: zvbi Version: 0.2.33-1 Severity: normal Tags: patch
Directing output to file triggers errors and fails to write the closed captions to the file: $ zvbi-atsc-cc -m -v -c -n CBS-HD >> out.txt zvbi-atsc-cc: Opening dvb/adapter0. zvbi-atsc-cc: Signal detected. zvbi-atsc-cc: Opened dvb/adapter0, tuned to 627.000 MHz and started capture thread. zvbi-atsc-cc: Capture thread ready. zvbi-atsc-cc: TS transmission error. zvbi-atsc-cc: TS transmission error. With the -C switch, I simply get no output; the file is created, but remains empty: $ zvbi-atsc-cc -m -v -C ~/out.txt -n CBS-HD It appears that the problem with the output file not receiving any content is caused by file buffering. Basically the content is written to a buffer, but the buffer is not flushed. After adding a fflush() function call, the caption content showed up: --- zvbi-0.2.33/contrib/atsc-cc.c 2008-09-03 10:57:22.000000000 -0700 +++ atsc-cc.c 2010-11-10 20:28:07.000000000 -0800 @@ -1845,6 +1845,7 @@ cr->ucs_buffer, cr->ucs_buffer_length, /* repl_char */ '?'); + fflush(fp); } } This fixes the bug. Cheers, Dave -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (1000, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32.11 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US) Shell: /bin/sh linked to /bin/dash Versions of packages zvbi depends on: ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libzvbi0 0.2.33-1 Vertical Blanking Interval decoder zvbi recommends no packages. zvbi suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org