diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2011-07-19 11:11:07 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2011-07-19 11:11:07 +0000 |
commit | b32c80d0cfc7b47fc344f8e5873771f803fbeb4d (patch) | |
tree | e7925fd23ad577103b9d7a90dc2fb090a89c6b63 /pjsip-apps/src/samples/vid_streamutil.c | |
parent | 262defe8ad75325065fd64ea5d3a03a59c5f3039 (diff) |
Fixed #1271: protected all video features with PJMEDIA_HAS_VIDEO macro setting.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3667 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/samples/vid_streamutil.c')
-rw-r--r-- | pjsip-apps/src/samples/vid_streamutil.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pjsip-apps/src/samples/vid_streamutil.c b/pjsip-apps/src/samples/vid_streamutil.c index 4d50b387..21be5c7c 100644 --- a/pjsip-apps/src/samples/vid_streamutil.c +++ b/pjsip-apps/src/samples/vid_streamutil.c @@ -35,6 +35,10 @@ #include <pjmedia-codec.h> #include <pjmedia/transport_srtp.h> + +#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) + + #include <stdlib.h> /* atoi() */ #include <stdio.h> @@ -927,3 +931,16 @@ on_exit: return (status == PJ_SUCCESS) ? 0 : 1; } + + +#else + +int main(int argc, char *argv[]) +{ + PJ_UNUSED_ARG(argc); + PJ_UNUSED_ARG(argv); + puts("Error: this sample requires video capability (PJMEDIA_HAS_VIDEO == 1)"); + return -1; +} + +#endif /* PJMEDIA_HAS_VIDEO */ |