From 8750215edbafc0f522f146efaef0ee9660c626dd Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 18 Dec 2002 12:03:28 +0000 Subject: [PATCH] Added missing break for 24bit formats (silence) --- src/pcm/pcm.c | 3 ++- src/pcm/pcm_misc.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index dbcf5ffc..1bae7e07 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -6285,11 +6285,12 @@ static void snd_pcm_unlink_ptr(snd_pcm_t *pcm, snd_pcm_rbptr_t *pcm_rbptr, int idx; a = slave_rbptr->link_dst; - for (idx = 0; idx < slave_rbptr->link_dst_count; idx++) + for (idx = 0; idx < slave_rbptr->link_dst_count; idx++) { if (a[idx] == pcm) { a[idx] = NULL; goto __found; } + } assert(0); return; diff --git a/src/pcm/pcm_misc.c b/src/pcm/pcm_misc.c index 619d36ac..dddeff41 100644 --- a/src/pcm/pcm_misc.c +++ b/src/pcm/pcm_misc.c @@ -589,6 +589,7 @@ int snd_pcm_format_set_silence(snd_pcm_format_t format, void *data, unsigned int #endif } } + break; } case 32: { u_int32_t silence = snd_pcm_format_silence_64(format); -- 2.11.0