Changeset 3797


Ignore:
Timestamp:
Oct 6, 2011 7:11:15 AM (12 years ago)
Author:
ming
Message:

Re #1370: Fixed dshow enumeration device capability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/dshow_dev.c

    r3715 r3797  
    258258static void enum_dev_cap(IBaseFilter *filter, 
    259259                         pjmedia_dir dir, 
    260                          const GUID *dshow_format, 
     260                         const GUID *dshow_fmt, 
    261261                         AM_MEDIA_TYPE **pMediatype, 
    262262                         IPin **pSrcpin, 
     
    306306                            continue; 
    307307 
    308                         nformat = (dshow_format? 1: 
     308                        nformat = (dshow_fmt? 1: 
    309309                                   sizeof(dshow_fmts)/sizeof(dshow_fmts[0])); 
    310310                        for (j = 0; j < nformat; j++) { 
    311                             if (!dshow_format || j > 0) 
     311                            const GUID *dshow_format = dshow_fmt; 
     312                             
     313                            if (!dshow_format) 
    312314                                dshow_format = dshow_fmts[j].dshow_format; 
    313315                            if (UuidCompare(&mediatype->subtype,  
Note: See TracChangeset for help on using the changeset viewer.