Clear img_in pointer after reading it

This commit is contained in:
Marko Viitanen 2016-01-22 14:29:35 +02:00
parent b5459c1f23
commit 0128ee26e7

View file

@ -344,6 +344,7 @@ int main(int argc, char *argv[])
PTHREAD_LOCK(&main_thread_mutex);
}
cur_in_img = img_in[frames_read & 1];
img_in[frames_read & 1] = NULL;
frames_read++;
if (in_args.retval == EXIT_FAILURE) {