Changeset 4167


Ignore:
Timestamp:
Jun 15, 2012 8:13:43 AM (12 years ago)
Author:
ming
Message:

Fixed #1536: Modify video port creation parameter to be set with actual creation prm on output

Location:
pjproject/trunk/pjmedia
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia-videodev/videodev.h

    r4016 r4167  
    677677 * replaced with the actual device ID upon return. 
    678678 * 
    679  * @param param         Sound device parameters to be used for the stream. 
     679 * @param param         On input, it specifies the video device parameters 
     680 *                      to be used for the stream. On output, this will be 
     681 *                      set to the actual video device parameters used to 
     682 *                      open the stream. 
    680683 * @param cb            Pointer to structure containing video stream 
    681684 *                      callbacks. 
  • pjproject/trunk/pjmedia/include/pjmedia/vid_port.h

    r3893 r4167  
    7979 
    8080/** 
    81  * Create a video port with the specified parameter. 
     81 * Create a video port with the specified parameter. Video port may open 
     82 * the video stream with different parameter than the requested values in 
     83 * the \a prm.vidparam argument. Application can check the the values in 
     84 * the \a prm.vidparam argument to see if they have changed. 
    8285 * 
    8386 * @param pool          Pool to allocate memory from. 
    84  * @param prm           The video port parameter. 
     87 * @param prm           On input, it specifies the video port parameters 
     88 *                      to be used. On output, prm.vidparam will be set to 
     89 *                      the actual video device parameters used to open the 
     90 *                      stream. 
    8591 * @param p_vp          Pointer to receive the result. 
    8692 * 
     
    8995 */ 
    9096PJ_DECL(pj_status_t) pjmedia_vid_port_create(pj_pool_t *pool, 
    91                                              const pjmedia_vid_port_param *prm, 
     97                                             pjmedia_vid_port_param *prm, 
    9298                                             pjmedia_vid_port **p_vp); 
    9399 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_port.c

    r4077 r4167  
    185185 
    186186PJ_DEF(pj_status_t) pjmedia_vid_port_create( pj_pool_t *pool, 
    187                                              const pjmedia_vid_port_param *prm, 
     187                                             pjmedia_vid_port_param *prm, 
    188188                                             pjmedia_vid_port **p_vid_port) 
    189189{ 
     
    366366    } 
    367367 
     368    prm->vidparam = vparam; 
    368369    *p_vid_port = vp; 
    369370 
Note: See TracChangeset for help on using the changeset viewer.