summaryrefslogtreecommitdiff
path: root/modules/gst1/gst.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gst1/gst.c')
-rw-r--r--modules/gst1/gst.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gst1/gst.c b/modules/gst1/gst.c
index 6f704e5..7510cac 100644
--- a/modules/gst1/gst.c
+++ b/modules/gst1/gst.c
@@ -383,6 +383,12 @@ static int gst_alloc(struct ausrc_st **stp, const struct ausrc *as,
if (!prm)
return EINVAL;
+ if (prm->fmt != AUFMT_S16LE) {
+ warning("gst: unsupported sample format (%s)\n",
+ aufmt_name(prm->fmt));
+ return ENOTSUP;
+ }
+
st = mem_zalloc(sizeof(*st), gst_destructor);
if (!st)
return ENOMEM;