stop further processing until vis is over

This commit is contained in:
Ahmet Inan 2014-11-25 09:33:04 +01:00
parent 87b2bff52c
commit 08427fe508

View file

@ -488,13 +488,13 @@ void decode(int samples) {
even_hpos = 0;
seperator_counter = 0;
sync_counter = sync_length;
if (++vis_counter >= vis_length) {
calibration_progress = 0;
calibration_countdown = 0;
vis_counter = 0;
for (int i = 0; i < bitmap_width * bitmap_height; ++i)
pixel_buffer[i] = rgb(0, 0, 0);
}
if (++vis_counter < vis_length)
continue;
calibration_progress = 0;
calibration_countdown = 0;
vis_counter = 0;
for (int i = 0; i < bitmap_width * bitmap_height; ++i)
pixel_buffer[i] = rgb(0, 0, 0);
}
int sync_level = cnt_active && cnt_quantized == 0;