Ignore:
Timestamp:
Jul 19, 2011 11:11:07 AM (13 years ago)
Author:
nanang
Message:

Fixed #1271: protected all video features with PJMEDIA_HAS_VIDEO macro setting.

File:
1 edited

Legend:

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

    r3664 r3667  
    5353 *  aviplay FILE.AVI 
    5454 */ 
     55 
     56 
     57#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 
    5558 
    5659 
     
    530533    return pj_run_app(&main_func, argc, argv, 0); 
    531534} 
     535 
     536#else 
     537 
     538int main(int argc, char *argv[]) 
     539{ 
     540    PJ_UNUSED_ARG(argc); 
     541    PJ_UNUSED_ARG(argv); 
     542    puts("Error: this sample requires video capability (PJMEDIA_HAS_VIDEO == 1)"); 
     543    return -1; 
     544} 
     545 
     546#endif /* PJMEDIA_HAS_VIDEO */ 
Note: See TracChangeset for help on using the changeset viewer.