Fixed compilation error in pjsua_app introduced by r3819 if video is not enabled (re #1390)

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3825 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2011-10-18 06:51:34 +00:00
parent a165e93a86
commit 565c52e6f0
1 changed files with 5 additions and 0 deletions

View File

@ -2831,6 +2831,9 @@ static void on_call_media_state(pjsua_call_id call_id)
case PJMEDIA_TYPE_VIDEO:
on_call_video_state(&call_info, mi, &has_error);
break;
default:
/* Make gcc happy about enum not handled by switch/case */
break;
}
}
@ -3198,6 +3201,7 @@ static void on_call_media_event(pjsua_call_id call_id,
PJ_LOG(5,(THIS_FILE, "Event %s",
pjmedia_fourcc_name(event->type, event_name)));
#if PJSUA_HAS_VIDEO
if (event->type == PJMEDIA_EVENT_FMT_CHANGED) {
/* Adjust renderer window size to original video size */
pjsua_call_info ci;
@ -3214,6 +3218,7 @@ static void on_call_media_event(pjsua_call_id call_id,
pjsua_vid_win_set_size(wid, &size);
}
}
#endif
}
/*