fixed tiny issue where err is missing as the first argument to read from a video stream