changed error detection for video stream