- Timestamp:
- Mar 22, 2011 9:46:04 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/dshow_dev.c
r3459 r3470 611 611 612 612 for (i = 0; i < icount; i++) { 613 RPC_STATUS rpcstatus ;613 RPC_STATUS rpcstatus, rpcstatus2; 614 614 615 615 hr = IAMStreamConfig_GetStreamCaps(streamcaps, i, … … 619 619 continue; 620 620 621 if (UuidCompare(&mediatype->subtype, 622 (UUID *)dshow_format, 623 &rpcstatus) == 0 && 624 rpcstatus == RPC_S_OK) 621 if (UuidCompare(&mediatype->subtype, 622 (UUID*)dshow_format, 623 &rpcstatus) == 0 && 624 rpcstatus == RPC_S_OK && 625 UuidCompare(&mediatype->formattype, 626 (UUID*)&FORMAT_VideoInfo, 627 &rpcstatus2) == 0 && 628 rpcstatus2 == RPC_S_OK) 625 629 { 626 630 srcpin = pPin; 627 631 graph->mediatype = mediatype; 628 632 break; 629 633 } 630 634 } … … 674 678 if (vfd->fps.num != 0) 675 679 video_info->AvgTimePerFrame = (LONGLONG) (10000000 * 676 677 (double)vfd->fps.num);680 (double)vfd->fps.denum / 681 vfd->fps.num); 678 682 video_info->bmiHeader.biSizeImage = DIBSIZE(video_info->bmiHeader); 679 683 mediatype->lSampleSize = DIBSIZE(video_info->bmiHeader);
Note: See TracChangeset
for help on using the changeset viewer.