…if you supply an output format that it cannot handle.
At the moment, everything appears to work until you actually start chucking 10-bit frames at it, then it gives these internal errors (and in my case rapidly ran out of memory because none of the function calls were returning a failure!) but these aren’t propagated to the caller.
So either fail when setting the output format, or when queuing a capture buffer or something.