FS-7500: fix if statement

This commit is contained in:
Seven Du 2014-11-16 09:27:30 +08:00 committed by Michael Jerris
parent 44e7929507
commit 258dacc742

View File

@ -2294,7 +2294,7 @@ 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: