Changeset 3697 for pjproject/trunk/pjsip-apps/src/vidgui/vidgui.cpp
- Timestamp:
- Aug 15, 2011 10:04:35 AM (13 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/vidgui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/vidgui
- Property svn:ignore
-
old new 2 2 vidgui 3 3 Makefile 4 README.TXT 4 5 .project 5 6 .cproject 7 release 8 debug 9 *.log 10 *.idb 11 *.pdb 12 *.vcproj 13 *.user
-
- Property svn:ignore
-
pjproject/trunk/pjsip-apps/src/vidgui/vidgui.cpp
r3695 r3697 22 22 #include <SDL.h> 23 23 #include <assert.h> 24 #include <QMessageBox> 24 25 25 26 #define LOG_FILE "vidgui.log" 26 27 28 // These configure SIP registration 27 29 #define SIP_DOMAIN NULL 28 30 //#define SIP_DOMAIN "pjsip.org" … … 31 33 #define SIP_PORT 5060 32 34 33 //#define DEFAULT_CAP_DEV PJMEDIA_VID_DEFAULT_CAPTURE_DEV34 #define DEFAULT_CAP_DEV 135 #define DEFAULT_CAP_DEV PJMEDIA_VID_DEFAULT_CAPTURE_DEV 36 //#define DEFAULT_CAP_DEV 1 35 37 #define DEFAULT_REND_DEV PJMEDIA_VID_DEFAULT_RENDER_DEV 36 38 … … 166 168 pjsua_vid_win_id wid; 167 169 pjsua_vid_win_info wi; 168 169 pjsua_vid_preview_start(DEFAULT_CAP_DEV, NULL); 170 pj_status_t status; 171 172 status = pjsua_vid_preview_start(DEFAULT_CAP_DEV, NULL); 173 if (status != PJ_SUCCESS) { 174 char errmsg[PJ_ERR_MSG_SIZE]; 175 pj_strerror(status, errmsg, sizeof(errmsg)); 176 QMessageBox::critical(0, "Error creating preview", errmsg); 177 return; 178 } 170 179 wid = pjsua_vid_preview_get_win(DEFAULT_CAP_DEV); 171 180 pjsua_vid_win_get_info(wid, &wi);
Note: See TracChangeset
for help on using the changeset viewer.