FS-7500: fix if statement
This commit is contained in:
parent
44e7929507
commit
258dacc742
|
@ -2294,12 +2294,12 @@ static void switch_core_session_parse_codec_settings(switch_core_session_t *sess
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((engine = &smh->engines[type]));
|
if (!(engine = &smh->engines[type])) return;
|
||||||
|
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case SWITCH_MEDIA_TYPE_AUDIO:
|
case SWITCH_MEDIA_TYPE_AUDIO:
|
||||||
break;
|
break;
|
||||||
case SWITCH_MEDIA_TYPE_VIDEO:
|
case SWITCH_MEDIA_TYPE_VIDEO:
|
||||||
{
|
{
|
||||||
const char *bwv = switch_channel_get_variable(session->channel, "video_codec_bandwidth");
|
const char *bwv = switch_channel_get_variable(session->channel, "video_codec_bandwidth");
|
||||||
uint32_t bw = 0;
|
uint32_t bw = 0;
|
||||||
|
|
Loading…
Reference in New Issue