Ignore:
Timestamp:
Jan 19, 2017 10:31:38 AM (8 years ago)
Author:
riza
Message:

Close #1919: Clear unused-variable warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/aviplay.c

    r4815 r5535  
    468468        puts("Error: filename required"); 
    469469        puts(desc); 
    470         return 1; 
     470        return 110; 
    471471    } 
    472472 
     
    474474    /* Must init PJLIB first: */ 
    475475    status = pj_init(); 
    476     PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 
     476    PJ_ASSERT_RETURN(status == PJ_SUCCESS, 120); 
    477477 
    478478    /* Must create a pool factory before we can allocate any memory. */ 
     
    493493     
    494494    status = pjmedia_vid_dev_subsys_init(&cp.factory); 
    495     if (status != PJ_SUCCESS) 
     495    if (status != PJ_SUCCESS) { 
     496        rc = 130; 
    496497        goto on_return; 
     498    } 
    497499     
    498500    status = pjmedia_aud_subsys_init(&cp.factory); 
    499501    if (status != PJ_SUCCESS) { 
     502        rc = 140; 
    500503        goto on_return; 
    501504    } 
     
    503506#if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 
    504507    status = pjmedia_codec_openh264_vid_init(NULL, &cp.factory); 
    505     if (status != PJ_SUCCESS) 
     508    if (status != PJ_SUCCESS) { 
     509        rc = 150; 
    506510        goto on_return; 
     511    } 
    507512#endif 
    508513 
    509514#if PJMEDIA_HAS_FFMPEG_VID_CODEC 
    510515    status = pjmedia_codec_ffmpeg_vid_init(NULL, &cp.factory); 
    511     if (status != PJ_SUCCESS) 
     516    if (status != PJ_SUCCESS) { 
     517        rc = 160; 
    512518        goto on_return;     
     519    } 
    513520#endif 
    514521 
     
    549556 
    550557    /* Done. */ 
    551     return 0; 
     558    return rc; 
    552559} 
    553560 
Note: See TracChangeset for help on using the changeset viewer.