mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-19 09:44:13 +00:00
FS-7504: allow <modname>.<codecname> support so multiple modules can exist for the same codec
This commit is contained in:
1 parent
52d15f6398
commit
7c294f242f
49 files changed
+307
-157
No files matched your search
@@ -1287,12 +1287,12 @@ PBoolean FSMediaStream::Open()
|
||||
}
|
||||
|
||||
// The following is performed on two different instances of this object.
|
||||
if (switch_core_codec_init(m_switchCodec, mediaFormat.GetEncodingName(), NULL, // FMTP
|
||||
if (switch_core_codec_init(m_switchCodec, mediaFormat.GetEncodingName(), NULL, NULL, // FMTP
|
||||
mediaFormat.GetClockRate(), ptime, 1, // Channels
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE, NULL, // Settings
|
||||
switch_core_session_get_pool(fsSession)) != SWITCH_STATUS_SUCCESS) {
|
||||
// Could not select a codecs using negotiated frames/packet, so try using default.
|
||||
if (switch_core_codec_init(m_switchCodec, mediaFormat.GetEncodingName(), NULL, // FMTP
|
||||
if (switch_core_codec_init(m_switchCodec, mediaFormat.GetEncodingName(), NULL, NULL, // FMTP
|
||||
mediaFormat.GetClockRate(), 0, 1, // Channels
|
||||
SWITCH_CODEC_FLAG_ENCODE | SWITCH_CODEC_FLAG_DECODE, NULL, // Settings
|
||||
switch_core_session_get_pool(fsSession)) != SWITCH_STATUS_SUCCESS) {
|
||||
|
||||
Reference in new issue
Block a user