mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
fix random issues
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10566 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -608,10 +608,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess
|
||||
switch_mutex_lock(session->codec_write_mutex);
|
||||
|
||||
if ((session->write_codec && frame->codec && session->write_codec->implementation != frame->codec->implementation)) {
|
||||
need_codec = TRUE;
|
||||
if (session->write_codec->implementation->codec_id == frame->codec->implementation->codec_id) {
|
||||
ptime_mismatch = TRUE;
|
||||
if (!need_codec) {
|
||||
status = perform_write(session, frame, flags, stream_id);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
need_codec = TRUE;
|
||||
}
|
||||
|
||||
if (session->write_codec && !frame->codec) {
|
||||
|
Reference in New Issue
Block a user