- Timestamp:
- Dec 17, 2010 1:17:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/ios_dev.m
r3395 r3399 190 190 strcpy(qdi->info.driver, "iOS"); 191 191 qdi->info.dir = PJMEDIA_DIR_RENDER; 192 qdi->info.has_callback = PJ_FALSE; 192 qdi->info.has_callback = PJ_FALSE; 193 qdi->info.caps = PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW; 193 194 194 195 if (NSClassFromString(@"AVCaptureSession")) { … … 204 205 qdi = &qf->dev_info[i]; 205 206 qdi->info.fmt_cnt = PJ_ARRAY_SIZE(ios_fmts); 206 qdi->info.caps = PJMEDIA_VID_DEV_CAP_FORMAT;207 qdi->info.caps |= PJMEDIA_VID_DEV_CAP_FORMAT; 207 208 qdi->info.fmt = (pjmedia_format*) 208 209 pj_pool_calloc(qf->pool, qdi->info.fmt_cnt, … … 329 330 CGImageRelease(quartzImage); 330 331 331 [stream->imgView setImage:image]; 332 [stream->imgView performSelectorOnMainThread:@selector(setImage:) 333 withObject:image waitUntilDone:NO]; 332 334 333 335 [pool release]; … … 453 455 [strm->cap_session addOutput:strm->video_output]; 454 456 455 / / Configure your output.457 /* Configure the video output */ 456 458 strm->vout_delegate = [VOutDelegate alloc]; 457 459 strm->vout_delegate->stream = strm; … … 477 479 /* Get the main window */ 478 480 UIWindow *window = [[UIApplication sharedApplication] keyWindow]; 481 482 if (param->flags & PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW && param->window) 483 window = param->window; 479 484 480 485 pj_assert(window);
Note: See TracChangeset
for help on using the changeset viewer.