Changeset 4168


Ignore:
Timestamp:
Jun 18, 2012 5:59:08 AM (7 years ago)
Author:
ming
Message:

Re #1536: Revert r4167

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/vid_port.h

    r4167 r4168  
    7979 
    8080/** 
    81  * Create a video port with the specified parameter. Video port may open 
     81 * Create a video port with the specified parameter. When video port opens 
    8282 * 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. 
     83 * the \a prm.vidparam argument, it will automatically do the necessary 
     84 * conversion. 
    8585 * 
    8686 * @param pool          Pool to allocate memory from. 
    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. 
     87 * @param prm           The video port parameter. 
    9188 * @param p_vp          Pointer to receive the result. 
    9289 * 
     
    9592 */ 
    9693PJ_DECL(pj_status_t) pjmedia_vid_port_create(pj_pool_t *pool, 
    97                                              pjmedia_vid_port_param *prm, 
     94                                             const pjmedia_vid_port_param *prm, 
    9895                                             pjmedia_vid_port **p_vp); 
    9996 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_port.c

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