Ignore:
Timestamp:
Jul 19, 2011 11:11:07 AM (13 years ago)
Author:
nanang
Message:

Fixed #1271: protected all video features with PJMEDIA_HAS_VIDEO macro setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r3664 r3667  
    12481248        call_med->tp_st = PJSUA_MED_TP_IDLE; 
    12491249 
     1250#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 
    12501251        /* While in initial call, set default video devices */ 
    12511252        if (type == PJMEDIA_TYPE_VIDEO) { 
     
    12631264            } 
    12641265        } 
     1266#endif 
     1267 
    12651268    } else if (call_med->tp_st == PJSUA_MED_TP_DISABLED) { 
    12661269        /* Media is being reenabled. */ 
     
    16511654                                                    &tpinfo.sock_info, 0, &m); 
    16521655            break; 
     1656#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 
    16531657        case PJMEDIA_TYPE_VIDEO: 
    16541658            status = pjmedia_endpt_create_video_sdp(pjsua_var.med_endpt, pool, 
    16551659                                                    &tpinfo.sock_info, 0, &m); 
    16561660            break; 
     1661#endif 
    16571662        default: 
    16581663            pj_assert(!"Invalid call_med media type"); 
     
    21252130            } 
    21262131            break; 
    2127 #if PJMEDIA_HAS_VIDEO 
     2132#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 
    21282133        case PJMEDIA_TYPE_VIDEO: 
    21292134            status = video_channel_update(call_med, tmp_pool, 
Note: See TracChangeset for help on using the changeset viewer.