]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added missing break for 24bit formats (silence)
authorJaroslav Kysela <perex@perex.cz>
Wed, 18 Dec 2002 12:03:28 +0000 (12:03 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 18 Dec 2002 12:03:28 +0000 (12:03 +0000)
src/pcm/pcm.c
src/pcm/pcm_misc.c

index dbcf5ffc3e4c65eec9e694559ec7e9009c6b5f4d..1bae7e078434c9afa31e766b2f6447cdfe064c55 100644 (file)
@@ -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;
 
index 619d36acc5f5b10c0193e0a053879b38b70ea218..dddeff41877bbc63657ad1f8e872cc557b69163c 100644 (file)
@@ -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);