summaryrefslogtreecommitdiff
path: root/main/format.c
diff options
context:
space:
mode:
authorSean Bright <sean.bright@gmail.com>2017-05-28 16:43:12 -0400
committerSean Bright <sean.bright@gmail.com>2017-05-30 15:10:20 -0500
commit5c27fe218776b499cff772660f2b4b7ee42b3802 (patch)
treeae91d3e182e3e2ba9d86b5063fad9367e1064631 /main/format.c
parentcf60a0c5bd9f01cee8f70003329dccc32752691e (diff)
format: Reintroduce smoother flags
In review 4843 (ASTERISK-24858), we added a hack that forced a smoother creation when sending signed linear so that the byte order was adjusted during transmission. This was needed because smoother flags were lost during the new format work that was done in Asterisk 13. Rather than rolling that same hack into res_rtp_multicast, re-introduce smoother flags so that formats can dictate their own options. Change-Id: I77b835fba0e539c6ce50014a984766f63cab2c16
Diffstat (limited to 'main/format.c')
-rw-r--r--main/format.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/format.c b/main/format.c
index 5ae5ad986..09e736cf5 100644
--- a/main/format.c
+++ b/main/format.c
@@ -391,6 +391,11 @@ int ast_format_can_be_smoothed(const struct ast_format *format)
return format->codec->smooth;
}
+int ast_format_get_smoother_flags(const struct ast_format *format)
+{
+ return format->codec->smoother_flags;
+}
+
enum ast_media_type ast_format_get_type(const struct ast_format *format)
{
return format->codec->type;