mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
FS-7173 #comment please test
This commit is contained in:
@@ -319,6 +319,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_read_impl(switch_core_se
|
||||
if (session->read_impl.codec_id) {
|
||||
*impp = session->read_impl;
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
} else {
|
||||
memset(impp, 0, sizeof(*impp));
|
||||
impp->number_of_channels = 1;
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
@@ -329,6 +332,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_real_read_impl(switch_co
|
||||
if (session->real_read_impl.codec_id) {
|
||||
*impp = session->real_read_impl;
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
} else {
|
||||
memset(impp, 0, sizeof(*impp));
|
||||
impp->number_of_channels = 1;
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
@@ -339,6 +345,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_write_impl(switch_core_s
|
||||
if (session->write_impl.codec_id) {
|
||||
*impp = session->write_impl;
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
} else {
|
||||
memset(impp, 0, sizeof(*impp));
|
||||
impp->number_of_channels = 1;
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
@@ -349,6 +358,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_video_read_impl(switch_c
|
||||
if (session->video_read_impl.codec_id) {
|
||||
*impp = session->video_read_impl;
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
} else {
|
||||
memset(impp, 0, sizeof(*impp));
|
||||
impp->number_of_channels = 1;
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
@@ -359,6 +371,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_get_video_write_impl(switch_
|
||||
if (session->video_write_impl.codec_id) {
|
||||
*impp = session->video_write_impl;
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
} else {
|
||||
memset(impp, 0, sizeof(*impp));
|
||||
impp->number_of_channels = 1;
|
||||
}
|
||||
|
||||
return SWITCH_STATUS_FALSE;
|
||||
|
Reference in New Issue
Block a user