diff options
Diffstat (limited to 'src/pcm/pcm_route.c')
-rw-r--r-- | src/pcm/pcm_route.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c index ac11bdc8..a9097caa 100644 --- a/src/pcm/pcm_route.c +++ b/src/pcm/pcm_route.c @@ -883,7 +883,10 @@ static int determine_chmap(snd_config_t *tt, snd_pcm_chmap_t **tt_chmap) } } - + if (chmap->channels == 0) { + free(chmap); + chmap = NULL; + } *tt_chmap = chmap; return 0; |