[Asterisk-code-review] format_sln: add .slin as supported file extension (asterisk[18])

Friendly Automation asteriskteam at digium.com
Mon Mar 20 08:38:52 CDT 2023


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/19972 )

Change subject: format_sln: add .slin as supported file extension
......................................................................

format_sln: add .slin as supported file extension

Adds '.slin' to existing supported file extensions:
.sln and .raw

ASTERISK-30465

Change-Id: Ice848addc03a64c8404b87cb5d3b13399c57e496
---
A doc/CHANGES-staging/format_sln_support_for_slin.txt
M formats/format_sln.c
2 files changed, 20 insertions(+), 1 deletion(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit




diff --git a/doc/CHANGES-staging/format_sln_support_for_slin.txt b/doc/CHANGES-staging/format_sln_support_for_slin.txt
new file mode 100644
index 0000000..3d66536
--- /dev/null
+++ b/doc/CHANGES-staging/format_sln_support_for_slin.txt
@@ -0,0 +1,5 @@
+Subject: format_sln
+
+format_sln now recognizes '.slin' as a valid
+file extension in addition to the existing
+'.sln' and '.raw'.
diff --git a/formats/format_sln.c b/formats/format_sln.c
index 80d3484..98985ba 100644
--- a/formats/format_sln.c
+++ b/formats/format_sln.c
@@ -127,7 +127,7 @@
 static struct ast_frame *slinear_read(struct ast_filestream *s, int *whennext){return generic_read(s, whennext, 320);}
 static struct ast_format_def slin_f = {
 	.name = "sln",
-	.exts = "sln|raw",
+	.exts = "sln|slin|raw",
 	.write = slinear_write,
 	.seek = slinear_seek,
 	.trunc = slinear_trunc,

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19972
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ice848addc03a64c8404b87cb5d3b13399c57e496
Gerrit-Change-Number: 19972
Gerrit-PatchSet: 3
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: N A <asterisk at phreaknet.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230320/7cb3ca65/attachment-0001.html>


More information about the asterisk-code-review mailing list