Error handling in getvideosize