Changeset 5046 for pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
- Timestamp:
- Apr 6, 2015 6:21:41 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
r5033 r5046 33 33 34 34 35 /* Enable/disable test of finding closest format algo */ 36 #define ENABLE_TEST_FIND_FMT 0 37 38 35 39 /** 36 40 * Enable this to trace the format matching process. … … 248 252 pjmedia_vid_dev_info *di) 249 253 { 250 unsigned i = 0, match_idx = 0, match_fmt = FMT_DIFF_COLOR_SPACE+1;254 unsigned i, match_idx = 0, match_fmt = FMT_DIFF_COLOR_SPACE+1; 251 255 252 256 /* Find the matching format. If no exact match is found, find … … 254 258 * use the first supported format on the list. 255 259 */ 256 for (i ; i < di->fmt_cnt; ++i) {260 for (i = 0; i < di->fmt_cnt; ++i) { 257 261 unsigned tmp_fmt = match_format_id(req_fmt_id, di->fmt[i].id); 258 262 … … 380 384 } 381 385 386 #if ENABLE_TEST_FIND_FMT 382 387 /** 383 388 * This is to test the algo to find the closest fmt … … 470 475 } 471 476 } 477 #endif 472 478 473 479 PJ_DEF(pj_status_t) pjmedia_vid_port_create( pj_pool_t *pool, … … 536 542 } 537 543 538 #if 0544 #if ENABLE_TEST_FIND_FMT 539 545 test_find_closest_fmt(&di); 540 546 #endif
Note: See TracChangeset
for help on using the changeset viewer.