summaryrefslogtreecommitdiff
path: root/codecs/ex_gsm.h
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/ex_gsm.h')
-rw-r--r--codecs/ex_gsm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/codecs/ex_gsm.h b/codecs/ex_gsm.h
index 8f8b4f9fe..006706038 100644
--- a/codecs/ex_gsm.h
+++ b/codecs/ex_gsm.h
@@ -27,6 +27,7 @@ static struct ast_frame *gsm_sample(void)
.data.ptr = ex_gsm,
};
- ast_format_set(&f.subclass.format, AST_FORMAT_GSM, 0);
+ f.subclass.format = ast_format_gsm;
+
return &f;
}