video_thread_wrapper.c - make code safer - prevent more null pointer
dereferences