diff options
author | Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com> | 2016-12-19 14:04:39 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-07-10 15:27:22 +0200 |
commit | 16557c2c7f2183bd2f760f65bd0d8bd0bea5c94c (patch) | |
tree | 49a8d986b2ca1dcbe29bdf64949df7040aaac6a4 /aplay | |
parent | a28ff22df8885a3d389901c18c96b45fce9e4fe2 (diff) | |
download | alsa-utils-16557c2c7f2183bd2f760f65bd0d8bd0bea5c94c.tar.gz |
aplay: interrupt streaming via signal in voc_pcm_write
aplay/arecord (alsa-utils v1.1.2) cannot interrupt streaming
via CTRL-C. Fixed the issue by properly handling 'in_aborting'
flag in appropriate functions.
Signed-off-by: Anant Agrawal <Anant_Agrawal@mentor.com>
Signed-off-by: Mikhail Durnev <mikhail_durnev@mentor.com>
Signed-off-by: Srikanth Krishnakar <Srikanth_Krishnakar@mentor.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'aplay')
-rw-r--r-- | aplay/aplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c index 00af662..89baa9a 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -2187,7 +2187,7 @@ static ssize_t voc_pcm_write(u_char *data, size_t count) ssize_t result = count, r; size_t size; - while (count > 0) { + while (count > 0 && !in_aborting) { size = count; if (size > chunk_bytes - buffer_pos) size = chunk_bytes - buffer_pos; |