mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 16:55:42 +01:00
alsaloop: fixed parsing value 'auto' of option 'sync'
The value 'auto' was not checked which resulted in using SYNC_TYPE_NONE instead of SYNC_TYPE_AUTO. Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
138e53aabb
commit
0fd3022e82
1 changed files with 2 additions and 0 deletions
|
@ -528,6 +528,8 @@ static int parse_config(int argc, char *argv[], snd_output_t *output,
|
|||
arg_sync = SYNC_TYPE_PLAYRATESHIFT;
|
||||
else if (optarg[0] == 'r')
|
||||
arg_sync = SYNC_TYPE_SAMPLERATE;
|
||||
else if (optarg[0] == 'a')
|
||||
arg_sync = SYNC_TYPE_AUTO;
|
||||
else
|
||||
arg_sync = atoi(optarg);
|
||||
if (arg_sync < 0 || arg_sync > SYNC_TYPE_LAST)
|
||||
|
|
Loading…
Reference in a new issue