- Timestamp:
- Sep 13, 2012 8:35:24 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/dshow_dev.c
r4241 r4253 66 66 pjmedia_format_id pjmedia_format; 67 67 const GUID *dshow_format; 68 pj_bool_t enabled; 68 69 } dshow_fmt_info; 69 70 70 71 static dshow_fmt_info dshow_fmts[] = 71 72 { 72 {PJMEDIA_FORMAT_YUY2, &MEDIASUBTYPE_YUY2 } ,73 {PJMEDIA_FORMAT_RGB24, &MEDIASUBTYPE_RGB24 } ,74 {PJMEDIA_FORMAT_RGB32, &MEDIASUBTYPE_RGB32 } ,75 {PJMEDIA_FORMAT_IYUV, &MEDIASUBTYPE_IYUV } ,76 {PJMEDIA_FORMAT_I420, &WMMEDIASUBTYPE_I420 }73 {PJMEDIA_FORMAT_YUY2, &MEDIASUBTYPE_YUY2, PJ_FALSE} , 74 {PJMEDIA_FORMAT_RGB24, &MEDIASUBTYPE_RGB24, PJ_FALSE} , 75 {PJMEDIA_FORMAT_RGB32, &MEDIASUBTYPE_RGB32, PJ_FALSE} , 76 {PJMEDIA_FORMAT_IYUV, &MEDIASUBTYPE_IYUV, PJ_FALSE} , 77 {PJMEDIA_FORMAT_I420, &WMMEDIASUBTYPE_I420, PJ_FALSE} 77 78 }; 78 79 … … 332 333 rpcstatus2 == RPC_S_OK) 333 334 { 335 if (!dshow_fmt) 336 dshow_fmts[j].enabled = PJ_TRUE; 334 337 if (sup_fmt) 335 338 sup_fmt[j] = PJ_TRUE; … … 643 646 644 647 for (i = 0; i < sizeof(dshow_fmts)/sizeof(dshow_fmts[0]); i++) { 645 if (dshow_fmts[i].pjmedia_format == id )648 if (dshow_fmts[i].pjmedia_format == id && dshow_fmts[i].enabled) 646 649 return &dshow_fmts[i]; 647 650 }
Note: See TracChangeset
for help on using the changeset viewer.