diff options
Diffstat (limited to 'modules/oss/oss.c')
-rw-r--r-- | modules/oss/oss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/oss/oss.c b/modules/oss/oss.c index 4a8af92..0d47dd1 100644 --- a/modules/oss/oss.c +++ b/modules/oss/oss.c @@ -226,7 +226,7 @@ static int src_alloc(struct ausrc_st **stp, const struct ausrc *as, (void)ctx; (void)errh; - if (!stp || !as || !prm || !rh) + if (!stp || !as || !prm || prm->fmt != AUFMT_S16LE || !rh) return EINVAL; st = mem_zalloc(sizeof(*st), ausrc_destructor); @@ -285,7 +285,7 @@ static int play_alloc(struct auplay_st **stp, const struct auplay *ap, struct auplay_st *st; int err; - if (!stp || !ap || !prm || !wh) + if (!stp || !ap || !prm || prm->fmt != AUFMT_S16LE || !wh) return EINVAL; st = mem_zalloc(sizeof(*st), auplay_destructor); |