- Timestamp:
- Apr 9, 2015 6:52:20 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
r5046 r5057 525 525 pj_ansi_snprintf(dev_name, sizeof(dev_name), "%s [%s]", 526 526 di.name, di.driver); 527 pjmedia_fourcc_name(vparam.fmt.id, fmt_name); 528 PJ_LOG(4,(THIS_FILE, 529 "Opening device %s for %s: format=%s, size=%dx%d @%d:%d fps", 530 dev_name, 531 vid_dir_name(prm->vidparam.dir), fmt_name, 532 vfd->size.w, vfd->size.h, 533 vfd->fps.num, vfd->fps.denum)); 527 534 528 535 if (di.dir == PJMEDIA_DIR_RENDER) { … … 546 553 #endif 547 554 548 pjmedia_fourcc_name(vparam.fmt.id, fmt_name);549 PJ_LOG(4,(THIS_FILE,550 "Finding best match for %s(%s) format=%s, size=%dx%d "\551 "@%d:%d fps",552 dev_name, vid_dir_name(prm->vidparam.dir), fmt_name,553 vfd->size.w, vfd->size.h, vfd->fps.num, vfd->fps.denum));554 555 555 match_prop = find_closest_fmt(prm->vidparam.fmt.id, 556 556 &vfd->size, … … 564 564 vparam.fmt.id = match_prop.id; 565 565 vparam.fmt.det.vid.size = match_prop.size; 566 vfd->size = match_prop.size;567 566 } 568 567 } … … 570 569 pj_strdup2_with_null(pool, &vp->dev_name, di.name); 571 570 vp->stream_role = di.has_callback ? ROLE_ACTIVE : ROLE_PASSIVE; 572 573 pjmedia_fourcc_name(vparam.fmt.id, fmt_name);574 575 PJ_LOG(4,(THIS_FILE,576 "Opening device %s for %s: format=%s, size=%dx%d @%d:%d fps",577 dev_name,578 vid_dir_name(prm->vidparam.dir), fmt_name,579 vfd->size.w, vfd->size.h,580 vfd->fps.num, vfd->fps.denum));581 571 582 572 ptime_usec = PJMEDIA_PTIME(&vfd->fps);
Note: See TracChangeset
for help on using the changeset viewer.