mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FSCORE-349 add flag to denote if a codec is init or not
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12961 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -399,11 +399,11 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
|
||||
|
||||
vid_read_codec = switch_core_session_get_video_read_codec(session);
|
||||
|
||||
if (read_codec && read_codec->implementation) {
|
||||
if (read_codec && read_codec->implementation && switch_core_codec_ready(read_codec)) {
|
||||
char rc[80] = "", vrc[80] = "", tmp[160] = "";
|
||||
|
||||
switch_codec2str(read_codec, rc, sizeof(rc));
|
||||
if (vid_read_codec && vid_read_codec->implementation) {
|
||||
if (vid_read_codec && vid_read_codec->implementation && switch_core_codec_ready(vid_read_codec)) {
|
||||
vrc[0] = ',';
|
||||
switch_codec2str(read_codec, vrc+1, sizeof(vrc) - 1);
|
||||
switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_VIDEO_CODEC_VARIABLE, vrc+1);
|
||||
|
||||
Reference in New Issue
Block a user