changes to remove chances on NULL Pointer in video input renerer