Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Added channel INTERLOCK functionality #422

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Extended rrbb_new() memory leak detection boundary
A value of delete_count + 100 seems to give issues with multiple channels and freq. offset decoding configured.
Extended to 168 for testing a max. with 3 channels and 7 offset decoders p/channel
  • Loading branch information
Dave van der Locht committed May 27, 2022
commit ed9618d75e54dc28245bdddf9ba06dc28ba2af96
6 changes: 5 additions & 1 deletion src/rrbb.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ rrbb_t rrbb_new (int chan, int subchan, int slice, int is_scrambled, int descram

new_count++;

if (new_count > delete_count + 100) {
/*
A value of delete_count + 100 seems to give issues with multiple channels and freq. offset decoding configured
extended to 168 for testing a max. with 3 channels and 7 offset decoders p/channel
*/
if (new_count > delete_count + 168) {
text_color_set(DW_COLOR_ERROR);
dw_printf ("MEMORY LEAK, rrbb_new, new_count=%d, delete_count=%d\n", new_count, delete_count);
}
Expand Down