- Timestamp:
- Jul 19, 2011 11:11:07 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-codec/ffmpeg_codecs.c
r3664 r3667 32 32 33 33 /* 34 * Only build this file if PJMEDIA_HAS_FFMPEG_CODEC != 0 35 */ 36 #if defined(PJMEDIA_HAS_FFMPEG_CODEC) && PJMEDIA_HAS_FFMPEG_CODEC != 0 34 * Only build this file if PJMEDIA_HAS_FFMPEG_CODEC != 0 and 35 * PJMEDIA_HAS_VIDEO != 0 36 */ 37 #if defined(PJMEDIA_HAS_FFMPEG_CODEC) && PJMEDIA_HAS_FFMPEG_CODEC != 0 && \ 38 defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 37 39 38 40 #define THIS_FILE "ffmpeg_codecs.c" -
pjproject/trunk/pjmedia/src/pjmedia-codec/h263_packetizer.c
r3664 r3667 22 22 #include <pj/errno.h> 23 23 #include <pj/string.h> 24 25 26 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 27 24 28 25 29 #define THIS_FILE "h263_packetizer.c" … … 286 290 return PJ_SUCCESS; 287 291 } 292 293 294 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia-codec/h264_packetizer.c
r3664 r3667 25 25 #include <pj/string.h> 26 26 27 28 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 29 30 27 31 #define THIS_FILE "h264_packetizer.c" 28 32 … … 529 533 return PJ_SUCCESS; 530 534 } 535 536 537 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia-videodev/colorbar_dev.c
r3664 r3667 23 23 #include <pj/rand.h> 24 24 25 #if PJMEDIA_VIDEO_DEV_HAS_CBAR_SRC 25 26 #if defined(PJMEDIA_VIDEO_DEV_HAS_CBAR_SRC) && \ 27 PJMEDIA_VIDEO_DEV_HAS_CBAR_SRC != 0 28 26 29 27 30 #define THIS_FILE "colorbar_dev.c" -
pjproject/trunk/pjmedia/src/pjmedia-videodev/dshow_dev.c
r3664 r3667 23 23 #include <pj/unicode.h> 24 24 25 #if PJMEDIA_VIDEO_DEV_HAS_DSHOW 25 26 #if defined(PJMEDIA_VIDEO_DEV_HAS_DSHOW) && PJMEDIA_VIDEO_DEV_HAS_DSHOW != 0 27 26 28 27 29 #ifdef _MSC_VER -
pjproject/trunk/pjmedia/src/pjmedia-videodev/dshowclasses.cpp
r3664 r3667 20 20 #include <pjmedia-videodev/config.h> 21 21 22 #if PJMEDIA_VIDEO_DEV_HAS_DSHOW 22 23 #if defined(PJMEDIA_VIDEO_DEV_HAS_DSHOW) && PJMEDIA_VIDEO_DEV_HAS_DSHOW != 0 24 23 25 24 26 #include <assert.h> … … 243 245 } 244 246 247 245 248 #endif /* PJMEDIA_VIDEO_DEV_HAS_DSHOW */ -
pjproject/trunk/pjmedia/src/pjmedia-videodev/errno.c
r3664 r3667 25 25 * Message must be limited to 64 chars! 26 26 */ 27 28 29 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 30 27 31 28 32 #if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) … … 111 115 return errstr; 112 116 } 117 118 119 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia-videodev/ffmpeg_dev.c
r3664 r3667 38 38 #include <pj/unicode.h> 39 39 40 #if PJMEDIA_VIDEO_DEV_HAS_FFMPEG 40 41 #if defined(PJMEDIA_VIDEO_DEV_HAS_FFMPEG) && PJMEDIA_VIDEO_DEV_HAS_FFMPEG != 0 42 41 43 42 44 #define THIS_FILE "ffmpeg.c" … … 512 514 #endif 513 515 516 514 517 #endif /* PJMEDIA_VIDEO_DEV_HAS_FFMPEG */ -
pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c
r3664 r3667 23 23 #include <pj/os.h> 24 24 25 #if PJMEDIA_VIDEO_DEV_HAS_SDL 25 26 #if defined(PJMEDIA_VIDEO_DEV_HAS_SDL) && PJMEDIA_VIDEO_DEV_HAS_SDL != 0 27 26 28 27 29 #if defined(PJ_DARWINOS) && PJ_DARWINOS!=0 … … 1289 1291 #endif 1290 1292 1293 1291 1294 #endif /* PJMEDIA_VIDEO_DEV_HAS_SDL */ -
pjproject/trunk/pjmedia/src/pjmedia-videodev/videodev.c
r3664 r3667 24 24 #include <pj/string.h> 25 25 26 27 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 28 29 26 30 #define THIS_FILE "videodev.c" 27 31 … … 805 809 return strm->op->destroy(strm); 806 810 } 811 812 813 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/avi_player.c
r3664 r3667 31 31 #include <pj/pool.h> 32 32 #include <pj/string.h> 33 34 35 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 33 36 34 37 … … 710 713 return PJ_SUCCESS; 711 714 } 715 716 717 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/endpoint.c
r3664 r3667 524 524 } 525 525 526 527 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 528 526 529 /* Create m=video SDP media line */ 527 530 PJ_DEF(pj_status_t) pjmedia_endpt_create_video_sdp(pjmedia_endpt *endpt, … … 531 534 pjmedia_sdp_media **p_m) 532 535 { 536 537 533 538 const pj_str_t STR_VIDEO = { "video", 5 }; 534 539 pjmedia_sdp_media *m; … … 662 667 } 663 668 669 #endif /* PJMEDIA_HAS_VIDEO */ 670 664 671 665 672 /** … … 730 737 pjmedia_sdp_session *sdp; 731 738 pjmedia_sdp_media *m; 732 unsigned i;733 739 pj_status_t status; 734 740 … … 751 757 sdp->media[sdp->media_count++] = m; 752 758 753 /* The remaining stream, if any, are videos (by convention as well) */ 754 for (i=1; i<stream_cnt; ++i) { 755 status = pjmedia_endpt_create_video_sdp(endpt, pool, 756 &sock_info[i], 0, &m); 757 if (status != PJ_SUCCESS) 758 return status; 759 sdp->media[sdp->media_count++] = m; 760 } 759 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 760 { 761 unsigned i; 762 763 /* The remaining stream, if any, are videos (by convention as well) */ 764 for (i=1; i<stream_cnt; ++i) { 765 status = pjmedia_endpt_create_video_sdp(endpt, pool, 766 &sock_info[i], 0, &m); 767 if (status != PJ_SUCCESS) 768 return status; 769 sdp->media[sdp->media_count++] = m; 770 } 771 } 772 #endif 761 773 762 774 /* Done */ -
pjproject/trunk/pjmedia/src/pjmedia/format.c
r3664 r3667 24 24 #include <pj/string.h> 25 25 26 27 PJ_DEF(void) pjmedia_format_init_audio( pjmedia_format *fmt, 28 pj_uint32_t fmt_id, 29 unsigned clock_rate, 30 unsigned channel_count, 31 unsigned bits_per_sample, 32 unsigned frame_time_usec, 33 pj_uint32_t avg_bps, 34 pj_uint32_t max_bps) 35 { 36 fmt->id = fmt_id; 37 fmt->type = PJMEDIA_TYPE_AUDIO; 38 fmt->detail_type = PJMEDIA_FORMAT_DETAIL_AUDIO; 39 40 fmt->det.aud.clock_rate = clock_rate; 41 fmt->det.aud.channel_count = channel_count; 42 fmt->det.aud.bits_per_sample = bits_per_sample; 43 fmt->det.aud.frame_time_usec = frame_time_usec; 44 fmt->det.aud.avg_bps = avg_bps; 45 fmt->det.aud.max_bps = max_bps; 46 } 47 48 49 PJ_DEF(pjmedia_audio_format_detail*) 50 pjmedia_format_get_audio_format_detail(const pjmedia_format *fmt, 51 pj_bool_t assert_valid) 52 { 53 if (fmt->detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO) { 54 return (pjmedia_audio_format_detail*) &fmt->det.aud; 55 } else { 56 pj_assert(!assert_valid || !"Invalid audio format detail"); 57 return NULL; 58 } 59 } 60 61 62 PJ_DEF(pjmedia_format*) pjmedia_format_copy(pjmedia_format *dst, 63 const pjmedia_format *src) 64 { 65 return (pjmedia_format*)pj_memcpy(dst, src, sizeof(*src)); 66 } 67 68 69 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 70 71 26 72 static pj_status_t apply_packed_fmt(const pjmedia_video_format_info *fi, 27 73 pjmedia_video_apply_fmt_param *aparam); … … 57 103 }; 58 104 59 60 PJ_DEF(void) pjmedia_format_init_audio( pjmedia_format *fmt,61 pj_uint32_t fmt_id,62 unsigned clock_rate,63 unsigned channel_count,64 unsigned bits_per_sample,65 unsigned frame_time_usec,66 pj_uint32_t avg_bps,67 pj_uint32_t max_bps)68 {69 fmt->id = fmt_id;70 fmt->type = PJMEDIA_TYPE_AUDIO;71 fmt->detail_type = PJMEDIA_FORMAT_DETAIL_AUDIO;72 73 fmt->det.aud.clock_rate = clock_rate;74 fmt->det.aud.channel_count = channel_count;75 fmt->det.aud.bits_per_sample = bits_per_sample;76 fmt->det.aud.frame_time_usec = frame_time_usec;77 fmt->det.aud.avg_bps = avg_bps;78 fmt->det.aud.max_bps = max_bps;79 }80 81 105 PJ_DEF(void) pjmedia_format_init_video( pjmedia_format *fmt, 82 106 pj_uint32_t fmt_id, … … 113 137 } 114 138 115 PJ_DEF(pjmedia_audio_format_detail*)116 pjmedia_format_get_audio_format_detail(const pjmedia_format *fmt,117 pj_bool_t assert_valid)118 {119 if (fmt->detail_type==PJMEDIA_FORMAT_DETAIL_AUDIO) {120 return (pjmedia_audio_format_detail*) &fmt->det.aud;121 } else {122 pj_assert(!assert_valid || !"Invalid audio format detail");123 return NULL;124 }125 }126 127 139 PJ_DEF(pjmedia_video_format_detail*) 128 140 pjmedia_format_get_video_format_detail(const pjmedia_format *fmt, … … 135 147 return NULL; 136 148 } 137 }138 139 PJ_DEF(pjmedia_format*) pjmedia_format_copy(pjmedia_format *dst,140 const pjmedia_format *src)141 {142 return (pjmedia_format*)pj_memcpy(dst, src, sizeof(*src));143 149 } 144 150 … … 365 371 } 366 372 373 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/vid_codec.c
r3664 r3667 25 25 #include <pj/string.h> 26 26 27 28 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 29 30 27 31 #define THIS_FILE "vid_codec.c" 28 32 … … 730 734 } 731 735 736 737 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/vid_codec_util.c
r3664 r3667 24 24 #include <pj/ctype.h> 25 25 #include <pj/math.h> 26 27 28 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 29 26 30 27 31 #define THIS_FILE "vid_codec_util.c" … … 618 622 return PJ_SUCCESS; 619 623 } 624 625 626 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/vid_port.c
r3664 r3667 25 25 #include <pj/log.h> 26 26 #include <pj/pool.h> 27 28 29 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 30 27 31 28 32 #define SIGNATURE PJMEDIA_SIG_VID_PORT … … 947 951 return status; 948 952 } 953 954 955 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r3664 r3667 39 39 40 40 41 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 42 43 41 44 #define THIS_FILE "vid_stream.c" 42 45 #define ERRLEVEL 1 … … 1939 1942 } 1940 1943 1944 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/pjmedia/vid_tee.c
r3664 r3667 24 24 #include <pj/pool.h> 25 25 26 27 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 28 29 26 30 #define TEE_PORT_NAME "vid_tee" 27 31 #define TEE_PORT_SIGN PJMEDIA_SIG_PORT_VID_TEE … … 383 387 return PJ_SUCCESS; 384 388 } 389 390 391 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/test/test.c
r3664 r3667 59 59 mem = &caching_pool.factory; 60 60 61 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 61 62 pjmedia_video_format_mgr_create(pool, 64, 0, NULL); 62 63 pjmedia_converter_mgr_create(pool, NULL); 63 64 pjmedia_vid_codec_mgr_create(pool, NULL); 65 #endif 64 66 65 67 #if HAS_VID_PORT_TEST … … 100 102 } 101 103 104 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 102 105 pjmedia_video_format_mgr_destroy(pjmedia_video_format_mgr_instance()); 103 106 pjmedia_converter_mgr_destroy(pjmedia_converter_mgr_instance()); 104 107 pjmedia_vid_codec_mgr_destroy(pjmedia_vid_codec_mgr_instance()); 105 108 #endif 109 106 110 pj_pool_release(pool); 107 111 pj_caching_pool_destroy(&caching_pool); -
pjproject/trunk/pjmedia/src/test/test.h
r3664 r3667 24 24 #include <pjlib.h> 25 25 26 #define HAS_VID_DEV_TEST 127 #define HAS_VID_PORT_TEST 028 #define HAS_VID_CODEC_TEST 126 #define HAS_VID_DEV_TEST PJMEDIA_HAS_VIDEO 27 #define HAS_VID_PORT_TEST PJMEDIA_HAS_VIDEO 28 #define HAS_VID_CODEC_TEST PJMEDIA_HAS_VIDEO 29 29 #define HAS_SDP_NEG_TEST 1 30 30 #define HAS_JBUF_TEST 1 -
pjproject/trunk/pjmedia/src/test/vid_codec_test.c
r3664 r3667 4 4 #include <pjmedia/vid_codec.h> 5 5 #include <pjmedia/port.h> 6 7 8 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 9 6 10 7 11 #define THIS_FILE "vid_codec.c" … … 466 470 467 471 472 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/test/vid_dev_test.c
r3666 r3667 24 24 #include <pjmedia_videodev.h> 25 25 26 27 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 28 29 26 30 #define THIS_FILE "vid_dev_test.c" 27 31 #define LOOP_DURATION 10 … … 293 297 return rc; 294 298 } 299 300 301 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjmedia/src/test/vid_port_test.c
r3666 r3667 24 24 #include <pjmedia_videodev.h> 25 25 26 27 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 28 29 26 30 #define THIS_FILE "vid_dev_test.c" 27 31 #define LOOP_DURATION 6 … … 240 244 return rc; 241 245 } 246 247 248 #endif /* PJMEDIA_HAS_VIDEO */ -
pjproject/trunk/pjsip-apps/src/samples/aviplay.c
r3664 r3667 53 53 * aviplay FILE.AVI 54 54 */ 55 56 57 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 55 58 56 59 … … 530 533 return pj_run_app(&main_func, argc, argv, 0); 531 534 } 535 536 #else 537 538 int 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 */ -
pjproject/trunk/pjsip-apps/src/samples/simpleua.c
r3666 r3667 104 104 static pjmedia_snd_port *g_snd_port; /* Sound device. */ 105 105 106 #if PJMEDIA_HAS_VIDEO106 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 107 107 static pjmedia_vid_stream *g_med_vstream; /* Call's video stream. */ 108 108 static pjmedia_vid_port *g_vid_capturer;/* Call's video capturer. */ … … 374 374 375 375 376 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 376 377 /* Init video subsystem */ 377 #if PJMEDIA_HAS_VIDEO378 378 pool = pjmedia_endpt_create_pool(g_med_endpt, "Video subsystem", 512, 512); 379 379 status = pjmedia_video_format_mgr_create(pool, 64, 0, NULL); … … 386 386 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 387 387 388 # if PJMEDIA_HAS_FFMPEG_CODEC388 # if defined(PJMEDIA_HAS_FFMPEG_CODEC) && PJMEDIA_HAS_FFMPEG_CODEC!=0 389 389 /* Init ffmpeg video codecs */ 390 390 status = pjmedia_codec_ffmpeg_init(NULL, &cp.factory); … … 558 558 pjmedia_snd_port_destroy(g_snd_port); 559 559 560 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 560 561 /* Destroy video ports */ 561 #if PJMEDIA_HAS_VIDEO562 562 if (g_vid_capturer) 563 563 pjmedia_vid_port_destroy(g_vid_capturer); … … 569 569 if (g_med_stream) 570 570 pjmedia_stream_destroy(g_med_stream); 571 #if PJMEDIA_HAS_VIDEO571 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 572 572 if (g_med_vstream) 573 573 pjmedia_vid_stream_destroy(g_med_vstream); 574 575 /* Deinit ffmpeg codec */ 576 # if defined(PJMEDIA_HAS_FFMPEG_CODEC) && PJMEDIA_HAS_FFMPEG_CODEC!=0 577 pjmedia_codec_ffmpeg_deinit(); 578 # endif 579 574 580 #endif 575 581 … … 579 585 pjmedia_transport_close(g_med_transport[i]); 580 586 } 581 582 /* Deinit ffmpeg codec */583 #if PJMEDIA_HAS_FFMPEG_CODEC584 pjmedia_codec_ffmpeg_deinit();585 #endif586 587 587 588 /* Deinit pjmedia endpoint */ … … 886 887 * the port directly to a renderer/capture video device. 887 888 */ 888 #if PJMEDIA_HAS_VIDEO889 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 889 890 if (local_sdp->media_count > 1) { 890 891 pjmedia_vid_stream_info vstream_info; -
pjproject/trunk/pjsip-apps/src/samples/vid_streamutil.c
r3664 r3667 35 35 #include <pjmedia-codec.h> 36 36 #include <pjmedia/transport_srtp.h> 37 38 39 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 40 37 41 38 42 #include <stdlib.h> /* atoi() */ … … 928 932 return (status == PJ_SUCCESS) ? 0 : 1; 929 933 } 934 935 936 #else 937 938 int 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 */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r3664 r3667 383 383 PJ_ASSERT_RETURN(pjsua_var.tpdata[0].data.ptr != NULL, PJ_EINVALIDOP); 384 384 385 /* Verify media count */ 386 #if !defined(PJMEDIA_HAS_VIDEO) || (PJMEDIA_HAS_VIDEO == 0) 387 PJ_ASSERT_RETURN(cfg->max_video_cnt == 0, PJ_EINVAL); 388 #endif 389 PJ_ASSERT_RETURN(cfg->max_audio_cnt + cfg->max_video_cnt <= 390 PJSUA_MAX_CALL_MEDIA, PJ_ETOOMANY); 391 385 392 PJSUA_LOCK(); 386 393 … … 641 648 PJ_ASSERT_RETURN(acc_id>=0 && acc_id<(int)PJ_ARRAY_SIZE(pjsua_var.acc), 642 649 PJ_EINVAL); 650 651 /* Verify media count */ 652 #if !defined(PJMEDIA_HAS_VIDEO) || (PJMEDIA_HAS_VIDEO == 0) 653 PJ_ASSERT_RETURN(cfg->max_video_cnt == 0, PJ_EINVAL); 654 #endif 655 PJ_ASSERT_RETURN(cfg->max_audio_cnt + cfg->max_video_cnt <= 656 PJSUA_MAX_CALL_MEDIA, PJ_ETOOMANY); 657 643 658 644 659 PJSUA_LOCK(); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r3666 r3667 1466 1466 &psi->info.aud); 1467 1467 break; 1468 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 1468 1469 case PJMEDIA_TYPE_VIDEO: 1469 1470 status = pjmedia_vid_stream_get_info(call_med->strm.v.stream, 1470 1471 &psi->info.vid); 1471 1472 break; 1473 #endif 1472 1474 default: 1473 1475 status = PJMEDIA_EINVALIMEDIATYPE; … … 1513 1515 &stat->jbuf); 1514 1516 break; 1517 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 1515 1518 case PJMEDIA_TYPE_VIDEO: 1516 1519 status = pjmedia_vid_stream_get_stat(call_med->strm.v.stream, … … 1520 1523 &stat->jbuf); 1521 1524 break; 1525 #endif 1522 1526 default: 1523 1527 status = PJMEDIA_EINVALIMEDIATYPE; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_dump.c
r3664 r3667 313 313 info.param->setting.frm_per_pkt* 314 314 info.param->info.frm_ptime); 315 316 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 315 317 } else if (call_med->type == PJMEDIA_TYPE_VIDEO) { 316 318 pjmedia_vid_stream *stream = call_med->strm.v.stream; … … 344 346 vfd->fps.num*1.0/vfd->fps.denum); 345 347 } 348 #endif /* PJMEDIA_HAS_VIDEO */ 349 346 350 } else { 347 351 has_stat = PJ_FALSE; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3664 r3667 1248 1248 call_med->tp_st = PJSUA_MED_TP_IDLE; 1249 1249 1250 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 1250 1251 /* While in initial call, set default video devices */ 1251 1252 if (type == PJMEDIA_TYPE_VIDEO) { … … 1263 1264 } 1264 1265 } 1266 #endif 1267 1265 1268 } else if (call_med->tp_st == PJSUA_MED_TP_DISABLED) { 1266 1269 /* Media is being reenabled. */ … … 1651 1654 &tpinfo.sock_info, 0, &m); 1652 1655 break; 1656 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 1653 1657 case PJMEDIA_TYPE_VIDEO: 1654 1658 status = pjmedia_endpt_create_video_sdp(pjsua_var.med_endpt, pool, 1655 1659 &tpinfo.sock_info, 0, &m); 1656 1660 break; 1661 #endif 1657 1662 default: 1658 1663 pj_assert(!"Invalid call_med media type"); … … 2125 2130 } 2126 2131 break; 2127 #if PJMEDIA_HAS_VIDEO2132 #if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 2128 2133 case PJMEDIA_TYPE_VIDEO: 2129 2134 status = video_channel_update(call_med, tmp_pool,
Note: See TracChangeset
for help on using the changeset viewer.