checking if frame is null, seen it happen with gambatte which is why single threaded video didn't work