Changeset 454:15e1f2a098fa in verona


Ignore:
Timestamp:
Apr 4, 2012 12:05:36 PM (14 months ago)
Author:
Vadim Lebedev <vadim@…>
Branch:
default
Parents:
452:ef158d6b3770 (diff), 453:be77f63cf114 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • phapi/phapi.c

    r452 r454  
    19281928 
    19291929        for (j = 0; j < hcount; j++) 
    1930                 set_custom_header(msg, hdrs[j].hdr, hdrs[j].val); 
     1930                set_customized_header(msg, hdrs[j].hdr, hdrs[j].val); 
    19311931 
    19321932        ph_apply_customizations(msg, NULL, NULL); 
  • phapi/phapi.c

    r453 r454  
    604604static int _is_video_enabled(int streams)  
    605605{ 
     606#ifdef PHAPI_VIDEO_SUPPORT 
    606607        return (streams & (PH_STREAM_VIDEO_RX | PH_STREAM_VIDEO_TX)); 
     608#else 
     609        return 0; 
     610#endif 
    607611} 
    608612 
     
    870874                                if (sdp_message_m_attr_has_type(ca->remote_sdp, "audio")) 
    871875                                        ca->nego_mflags |= PH_STREAM_AUDIO; 
     876#ifdef PHAPI_VIDEO_SUPPORT 
    872877                                if (sdp_message_m_attr_has_type(ca->remote_sdp, "video")) 
    873878                                        ca->nego_mflags |= PH_STREAM_VIDEO; 
     879#endif 
    874880                                osip_free(sdp); 
    875881                        } 
     
    886892                                if (sdp_message_m_attr_has_type(ca->remote_sdp, "audio")) 
    887893                                        ca->nego_mflags |= PH_STREAM_AUDIO; 
     894#ifdef PHAPI_VIDEO_SUPPORT 
    888895                                if (sdp_message_m_attr_has_type(ca->remote_sdp, "video")) 
    889896                                        ca->nego_mflags |= PH_STREAM_VIDEO; 
     897#endif 
    890898                                osip_free(sdp); 
    891899                        } 
     
    967975static int ph_call_hasvideo(phcall_t *ca) 
    968976{ 
     977#ifdef PHAPI_VIDEO_SUPPORT 
    969978        if (ca->mses && (ca->mses->activestreams & (1 << PH_MSTREAM_VIDEO1))) 
    970979                return 1; 
     980#endif 
    971981        return 0; 
    972982} 
     
    37473757PHAPI_EXPORT int phChangeVideoDevices(const char *devstr) 
    37483758{ 
     3759#ifdef PHAPI_VIDEO_SUPPORT 
    37493760        if (devstr) 
    37503761                osip_strncpy(phcfg.video_config.video_device, devstr, sizeof(phcfg.video_config.video_device)-1); 
     3762#endif 
    37513763         
    37523764        return 0; 
Note: See TracChangeset for help on using the changeset viewer.