rawvid: fix error handling