Adds error handling to v4l_mainloop