FS-7500: fix if statement

This commit is contained in:
Seven Du authored and Michael Jerris committed 2015-05-28 12:46:44 -05:00
1 parent 44e7929507
commit 258dacc742
1 file changed
+2 -2
+2 -2
View File
@@ -2294,12 +2294,12 @@ static void switch_core_session_parse_codec_settings(switch_core_session_t *sess
return;
}
if ((engine = &smh->engines[type]));
if (!(engine = &smh->engines[type])) return;
switch(type) {
case SWITCH_MEDIA_TYPE_AUDIO:
break;
case SWITCH_MEDIA_TYPE_VIDEO:
case SWITCH_MEDIA_TYPE_VIDEO:
{
const char *bwv = switch_channel_get_variable(session->channel, "video_codec_bandwidth");
uint32_t bw = 0;