Ignore:
Timestamp:
Apr 6, 2015 6:21:41 AM (6 years ago)
Author:
nanang
Message:

Misc (re #1782): Fixed various compile warnings on MacOS & iOS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/vid_port.c

    r5033 r5046  
    3333 
    3434 
     35/* Enable/disable test of finding closest format algo */ 
     36#define ENABLE_TEST_FIND_FMT 0 
     37 
     38 
    3539/** 
    3640 * Enable this to trace the format matching process. 
     
    248252                                       pjmedia_vid_dev_info *di) 
    249253{ 
    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; 
    251255 
    252256    /* Find the matching format. If no exact match is found, find  
     
    254258     * use the first supported format on the list. 
    255259     */ 
    256     for (i; i < di->fmt_cnt; ++i) { 
     260    for (i = 0; i < di->fmt_cnt; ++i) { 
    257261        unsigned tmp_fmt = match_format_id(req_fmt_id, di->fmt[i].id); 
    258262 
     
    380384} 
    381385 
     386#if ENABLE_TEST_FIND_FMT 
    382387/** 
    383388 * This is to test the algo to find the closest fmt 
     
    470475    } 
    471476} 
     477#endif 
    472478 
    473479PJ_DEF(pj_status_t) pjmedia_vid_port_create( pj_pool_t *pool, 
     
    536542        } 
    537543 
    538 #if 0 
     544#if ENABLE_TEST_FIND_FMT 
    539545        test_find_closest_fmt(&di); 
    540546#endif 
Note: See TracChangeset for help on using the changeset viewer.