aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2009-11-28 00:54:11 (GMT)
committerDevin Heitmueller <dheitmueller@kernellabs.com>2009-11-28 00:54:11 (GMT)
commit1c7964a8e4dca216a488220b47ae9ae8cdfbac70 (patch)
tree03f647a69415bb06e90dfbab8471f908f4097471 /src
parent5f979b263120e12afc47e5b78be8cdd10794aba4 (diff)
djh - If four fields have been read, then we need to call the VBI code to process frames twice, or else we lose half the data.
Diffstat (limited to 'src')
-rw-r--r--src/tvtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tvtime.c b/src/tvtime.c
index ef9a687..bdc0986 100644
--- a/src/tvtime.c
+++ b/src/tvtime.c
@@ -2358,8 +2358,10 @@ int tvtime_main( rtctimer_t *rtctimer, int read_stdin, int realtime,
if( fieldsavailable == 4 ) {
if( secondlastframeid >= 0 )
videoinput_free_frame( vidin, secondlastframeid );
- if( vbidata )
+ if( vbidata ) {
vbidata_process_frame( vbidata, printdebug );
+ vbidata_process_frame( vbidata, printdebug );
+ }
} else if( fieldsavailable == 2 ) {
if( lastframeid >= 0 )
videoinput_free_frame( vidin, lastframeid );

Privacy Policy