diff options
author | Liong Sauw Ming <ming@teluu.com> | 2012-06-15 08:13:43 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2012-06-15 08:13:43 +0000 |
commit | 86710818f1c65192a78f05d1e2e5672c8802e55e (patch) | |
tree | f78cb92d871e1f15fc54e06159c9a7b112d1989b /pjmedia/include/pjmedia | |
parent | 98e356c52e43727afe3c0759ede9aa68814e8234 (diff) |
Fixed #1536: Modify video port creation parameter to be set with actual creation prm on output
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4167 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia')
-rw-r--r-- | pjmedia/include/pjmedia/vid_port.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pjmedia/include/pjmedia/vid_port.h b/pjmedia/include/pjmedia/vid_port.h index 3de28346..0d5e3d84 100644 --- a/pjmedia/include/pjmedia/vid_port.h +++ b/pjmedia/include/pjmedia/vid_port.h @@ -78,17 +78,23 @@ typedef struct pjmedia_vid_port pjmedia_vid_port; PJ_DECL(void) pjmedia_vid_port_param_default(pjmedia_vid_port_param *prm); /** - * Create a video port with the specified parameter. + * Create a video port with the specified parameter. Video port may open + * the video stream with different parameter than the requested values in + * the \a prm.vidparam argument. Application can check the the values in + * the \a prm.vidparam argument to see if they have changed. * * @param pool Pool to allocate memory from. - * @param prm The video port parameter. + * @param prm On input, it specifies the video port parameters + * to be used. On output, prm.vidparam will be set to + * the actual video device parameters used to open the + * stream. * @param p_vp Pointer to receive the result. * * @return PJ_SUCCESS if video port has been created * successfully, or the appropriate error code. */ PJ_DECL(pj_status_t) pjmedia_vid_port_create(pj_pool_t *pool, - const pjmedia_vid_port_param *prm, + pjmedia_vid_port_param *prm, pjmedia_vid_port **p_vp); /** |