-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stream: check ALSA API results as <0 rather than !=0
Most ALSA API functions that return status, declare return value as either 0 or negative error code. However some functions like snd_pcm_hw_params_any() return just int. In most cases it's the same 0 or negative, but as was found in #108, it may return positive values too. ALSA lib internally uses "< 0" for return value checking.
- Loading branch information
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters