X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=oss_write.c;h=0565167c256a43bfe86a6442f195a320e1458db8;hb=d440a71683940a58747de6dc32643db452d9cf54;hp=311a514dc86ff6bfb01abf53d16a75672827af12;hpb=ba83a291cd486e8ab53ac64d81b17d8f5705d715;p=paraslash.git diff --git a/oss_write.c b/oss_write.c index 311a514d..0565167c 100644 --- a/oss_write.c +++ b/oss_write.c @@ -199,9 +199,15 @@ static int oss_post_select(__a_unused struct sched *s, void *context) if (sound_device_is_busy()) return 0; - get_btr_sample_rate(btrn, &rate); - get_btr_channels(btrn, &ch); - get_btr_sample_format(btrn, &format); + ret = get_btr_sample_rate(btrn, &rate); + if (ret < 0) + goto out; + ret = get_btr_channels(btrn, &ch); + if (ret < 0) + goto out; + ret = get_btr_sample_format(btrn, &format); + if (ret < 0) + goto out; ret = oss_init(wn, rate, ch, format); if (ret < 0) goto out;