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/vid_streamutil.c

    r3664 r3667  
    3535#include <pjmedia-codec.h> 
    3636#include <pjmedia/transport_srtp.h> 
     37 
     38 
     39#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 
     40 
    3741 
    3842#include <stdlib.h>     /* atoi() */ 
     
    928932    return (status == PJ_SUCCESS) ? 0 : 1; 
    929933} 
     934 
     935 
     936#else 
     937 
     938int main(int argc, char *argv[]) 
     939{ 
     940    PJ_UNUSED_ARG(argc); 
     941    PJ_UNUSED_ARG(argv); 
     942    puts("Error: this sample requires video capability (PJMEDIA_HAS_VIDEO == 1)"); 
     943    return -1; 
     944} 
     945 
     946#endif /* PJMEDIA_HAS_VIDEO */ 
Note: See TracChangeset for help on using the changeset viewer.