Improved threading in video_logger.py.