From 342120e9f5613f0ac7c8a5eb8d9b0b33452015a8 Mon Sep 17 00:00:00 2001 From: Hayley Date: Fri, 21 Jun 2019 10:51:34 -0500 Subject: [PATCH] Working RX with somewhat acceptable TX We were able to fix the delay issue, there is still a bug in the TX where someof the data gets off sync and will cut out --- DSP_API/ThumbDV/thumbDV.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DSP_API/ThumbDV/thumbDV.c b/DSP_API/ThumbDV/thumbDV.c index df32339..711d2d1 100644 --- a/DSP_API/ThumbDV/thumbDV.c +++ b/DSP_API/ThumbDV/thumbDV.c @@ -76,6 +76,7 @@ static pthread_t _read_thread; BOOL _readThreadAbort = FALSE; static uint32 _buffering_target = 0; +static uint32 _encode_buffering_target = 4; static pthread_rwlock_t _encoded_list_lock; static BufferDescriptor _encoded_root; @@ -141,7 +142,7 @@ static void _thumbDVEncodedList_LinkTail( BufferDescriptor buf_desc ) { _encoded_root->prev = buf_desc; _encoded_count++; - if ( _encoded_count > _buffering_target ) { + if ( _encoded_count > _encode_buffering_target ) { if ( _encoded_buffering ) output( "Encoded Buffering is now FALSE\n" ); _encoded_buffering = FALSE;