prevent race on codec change mid-call

This commit is contained in:
Anthony Minessale committed 2010-12-17 17:27:23 -06:00
1 parent ab0a2bfa03
commit 668763f490
2 files changed
+6 -2

No files matched your search

+2 -1
View File
@@ -2669,7 +2669,8 @@ switch_status_t sofia_glue_tech_set_codec(private_object_t *tech_pvt, int force)
tech_pvt->rm_encoding,
tech_pvt->codec_ms,
tech_pvt->rm_rate);
switch_yield(tech_pvt->read_impl.microseconds_per_packet);
switch_core_session_lock_codec_write(tech_pvt->session);
switch_core_session_lock_codec_read(tech_pvt->session);
resetting = 1;