From 56a567ffe9bbe46f17caa83faf943e095254d9d9 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Thu, 6 Oct 2011 06:37:46 +0000 Subject: Close #1381: - Added 'ignore_fmtp' field in pjmedia_vid_codec_param to allow application to omit SDP fmtp in codec param without risking video size and frame rate param being overridden with default values. - Updated sample app vid_streamutil.c to use that field, which currently not supplying SDP fmtp to video codec. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3795 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/samples/vid_streamutil.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pjsip-apps') diff --git a/pjsip-apps/src/samples/vid_streamutil.c b/pjsip-apps/src/samples/vid_streamutil.c index fd75bfb3..9d125bda 100644 --- a/pjsip-apps/src/samples/vid_streamutil.c +++ b/pjsip-apps/src/samples/vid_streamutil.c @@ -708,7 +708,7 @@ int main(int argc, char *argv[]) /* Create capture */ status = pjmedia_vid_dev_default_param( pool, - 0,//PJMEDIA_VID_DEFAULT_CAPTURE_DEV, + PJMEDIA_VID_DEFAULT_CAPTURE_DEV, &vpp.vidparam); if (status != PJ_SUCCESS) goto on_exit; @@ -726,7 +726,7 @@ int main(int argc, char *argv[]) /* Create renderer */ status = pjmedia_vid_dev_default_param( pool, - 1,//PJMEDIA_VID_DEFAULT_RENDER_DEV, + PJMEDIA_VID_DEFAULT_RENDER_DEV, &vpp.vidparam); if (status != PJ_SUCCESS) goto on_exit; @@ -741,6 +741,9 @@ int main(int argc, char *argv[]) } } + /* Set to ignore fmtp */ + codec_param.ignore_fmtp = PJ_TRUE; + /* Create stream based on program arguments */ status = create_stream(pool, med_endpt, codec_info, &codec_param, dir, rx_pt, tx_pt, local_port, &remote_addr, @@ -795,7 +798,7 @@ int main(int argc, char *argv[]) vpp.active = PJ_FALSE; status = pjmedia_vid_dev_default_param( pool, - 1,//PJMEDIA_VID_DEFAULT_RENDER_DEV, + PJMEDIA_VID_DEFAULT_RENDER_DEV, &vpp.vidparam); if (status != PJ_SUCCESS) goto on_exit; -- cgit v1.2.3