Changeset 497


Ignore:
Timestamp:
Jun 11, 2006 11:19:43 PM (18 years ago)
Author:
bennylp
Message:

Changed codec priority to use integer with value between 0-255 instead of enum

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/os_linux_kernel.h

    r433 r497  
    7878#define PJ_SELECT_NEEDS_NFDS        0 
    7979 
     80/* Is errno a good way to retrieve OS errors? 
     81 * (probably no for linux kernel)  
     82 * If you answer no here, you'll need to tell pjlib how to get OS 
     83 * error (a compile error will tell you exactly where) 
     84 */ 
     85#define PJ_HAS_ERRNO_VAR            0 
     86 
    8087/* This value specifies the value set in errno by the OS when a non-blocking 
    8188 * socket recv() can not return immediate daata. 
     
    115122#ifndef PJ_OS_HAS_CHECK_STACK 
    116123#   define PJ_OS_HAS_CHECK_STACK    0 
     124#endif 
    117125#define PJ_TERM_HAS_COLOR           0 
    118126#define PJ_NATIVE_STRING_IS_UNICODE 0 
  • pjproject/trunk/pjmedia/include/pjmedia/codec.h

    r438 r497  
    427427     * of previously highest priority codec to NEXT_HIGHER. 
    428428     */ 
    429     PJMEDIA_CODEC_PRIO_HIGHEST = 16, 
     429    PJMEDIA_CODEC_PRIO_HIGHEST = 255, 
    430430 
    431431    /** 
     
    433433     * codecs with this same priority. 
    434434     */ 
    435     PJMEDIA_CODEC_PRIO_NEXT_HIGHER = 12, 
     435    PJMEDIA_CODEC_PRIO_NEXT_HIGHER = 254, 
    436436 
    437437    /** 
     
    439439     * codec manager by codec factory. 
    440440     */ 
    441     PJMEDIA_CODEC_PRIO_NORMAL = 8, 
     441    PJMEDIA_CODEC_PRIO_NORMAL = 128, 
    442442 
    443443    /** 
     
    446446     * in the last place in the order. 
    447447     */ 
    448     PJMEDIA_CODEC_PRIO_LOWEST = 4, 
     448    PJMEDIA_CODEC_PRIO_LOWEST = 1, 
    449449 
    450450    /** 
     
    638638 * @param codec_id  The full codec ID or codec ID prefix. If an empty 
    639639 *                  string is given, it will match all codecs. 
    640  * @param prio      Priority to be set. 
     640 * @param prio      Priority to be set. The priority can have any value 
     641 *                  between 1 to 255. When the priority is set to zero, 
     642 *                  the codec will be disabled. 
    641643 * 
    642644 * @return          PJ_SUCCESS if at least one codec info is found. 
     
    645647pjmedia_codec_mgr_set_codec_priority(pjmedia_codec_mgr *mgr,  
    646648                                     const pj_str_t *codec_id, 
    647                                      pjmedia_codec_priority prio); 
     649                                     pj_uint8_t prio); 
    648650 
    649651 
  • pjproject/trunk/pjmedia/src/pjmedia/codec.c

    r411 r497  
    310310pjmedia_codec_mgr_set_codec_priority(pjmedia_codec_mgr *mgr,  
    311311                                     const pj_str_t *codec_id, 
    312                                      pjmedia_codec_priority prio) 
     312                                     pj_uint8_t prio) 
    313313{ 
    314314    unsigned i, found = 0; 
Note: See TracChangeset for help on using the changeset viewer.