diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-10-18 06:51:34 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-10-18 06:51:34 +0000 |
commit | 516c0c9903e7b2e8deab8e02544aebd9ae8982b2 (patch) | |
tree | 2ef4901cf31324a77f1b279600d04bec6785c90d | |
parent | 044e24c187fff2e14fc2f102cd561ccf057a7de3 (diff) |
Fixed compilation error in pjsua_app introduced by r3819 if video is not enabled (re #1390)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3825 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index 2d802771..25cd8879 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -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 } /* |