Skip to content

Commit 7e72b42

Browse files
author
Austin Sweat
committed
Adds SPEEX to AudioCodec class.
1 parent 5c24624 commit 7e72b42

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/gst-plugins/commons/constants.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ G_BEGIN_DECLS
7676
/* RTP enconding names */
7777
#define OPUS_ENCONDING_NAME "OPUS"
7878
#define VP8_ENCONDING_NAME "VP8"
79+
#define SPEEX_ENCONDING_NAME "speex"
7980

8081
G_END_DECLS
8182
#endif /* __KMS_CONSTANTS_H__ */

src/gst-plugins/commons/kmsutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ kms_utils_get_caps_codec_name_from_sdp (const gchar * codec_name)
216216
if (g_ascii_strcasecmp (VP8_ENCONDING_NAME, codec_name) == 0) {
217217
return "VP8";
218218
}
219-
if (g_ascii_strcasecmp ("speex", codec_name) == 0) {
219+
if (g_ascii_strcasecmp (SPEEX_ENCONDING_NAME, codec_name) == 0) {
220220
return "SPEEX";
221221
}
222222

src/server/interface/core.kmd.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,8 @@
989989
"values": [
990990
"OPUS",
991991
"PCMU",
992-
"RAW"
992+
"RAW",
993+
"SPEEX"
993994
],
994995
"name": "AudioCodec",
995996
"doc": "Codec used for transmission of audio."

0 commit comments

Comments
 (0)