Merge pull request #1526 in FS/freeswitch from ~HUNYI/freeswitch:bugfix/FS-11176-fix-do-not-restore-previous-codec to master
* commit '227a13497825f7ac890b6248c51570cb0d666164': FS-11176: [core] do not use previous codec if its not ready
This commit is contained in:
commit
8bbb1f6760
|
@ -235,7 +235,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_read_codec(switch_core_s
|
|||
goto end;
|
||||
}
|
||||
|
||||
if (session->read_codec->next) {
|
||||
if (session->read_codec->next && switch_core_codec_ready(session->read_codec->next)) {
|
||||
switch_codec_t *old = session->read_codec;
|
||||
session->read_codec = session->read_codec->next;
|
||||
if (session->read_codec->implementation) {
|
||||
|
|
Loading…
Reference in New Issue