Correcting error in readvideostatus to waitign from the right endpoint.