Changeset 3699 for pjproject/trunk/pjsip-apps/src/vidgui/vidgui.cpp
- Timestamp:
- Aug 15, 2011 10:29:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/vidgui/vidgui.cpp
r3697 r3699 20 20 #include "vidwin.h" 21 21 22 #if defined(PJ_WIN32) 23 # define SDL_MAIN_HANDLED 24 #endif 25 22 26 #include <SDL.h> 23 27 #include <assert.h> … … 51 55 MainWin::~MainWin() 52 56 { 57 quit(); 53 58 theInstance_ = NULL; 54 59 } … … 95 100 connect(hangupButton_, SIGNAL(clicked()), this, SLOT(hangup())); 96 101 connect(quitButton_, SIGNAL(clicked()), this, SLOT(quit())); 97 connect(this, SIGNAL(close()), this, SLOT(quit()));102 //connect(this, SIGNAL(close()), this, SLOT(quit())); 98 103 } 99 104 … … 168 173 pjsua_vid_win_id wid; 169 174 pjsua_vid_win_info wi; 175 pjsua_vid_preview_param pre_param; 170 176 pj_status_t status; 171 177 172 status = pjsua_vid_preview_start(DEFAULT_CAP_DEV, NULL); 178 pj_bzero(&pre_param, sizeof(pre_param)); 179 pre_param.rend_id = DEFAULT_REND_DEV; 180 181 status = pjsua_vid_preview_start(DEFAULT_CAP_DEV, &pre_param); 173 182 if (status != PJ_SUCCESS) { 174 183 char errmsg[PJ_ERR_MSG_SIZE]; … … 180 189 pjsua_vid_win_get_info(wid, &wi); 181 190 182 video_prev_= new VidWin(&wi.hwnd); 183 video_prev_->setMinimumSize(320,200); 191 video_prev_ = new VidWin(&wi.hwnd); 184 192 vbox_left->addWidget(video_prev_, 1); 185 193
Note: See TracChangeset
for help on using the changeset viewer.