Changeset 454:15e1f2a098fa in verona
- Timestamp:
- Apr 4, 2012 12:05:36 PM (14 months ago)
- 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. - Files:
-
- 2 edited
-
phapi/phapi.c (modified) (1 diff)
-
phapi/phapi.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r452 r454 1928 1928 1929 1929 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); 1931 1931 1932 1932 ph_apply_customizations(msg, NULL, NULL); -
phapi/phapi.c
r453 r454 604 604 static int _is_video_enabled(int streams) 605 605 { 606 #ifdef PHAPI_VIDEO_SUPPORT 606 607 return (streams & (PH_STREAM_VIDEO_RX | PH_STREAM_VIDEO_TX)); 608 #else 609 return 0; 610 #endif 607 611 } 608 612 … … 870 874 if (sdp_message_m_attr_has_type(ca->remote_sdp, "audio")) 871 875 ca->nego_mflags |= PH_STREAM_AUDIO; 876 #ifdef PHAPI_VIDEO_SUPPORT 872 877 if (sdp_message_m_attr_has_type(ca->remote_sdp, "video")) 873 878 ca->nego_mflags |= PH_STREAM_VIDEO; 879 #endif 874 880 osip_free(sdp); 875 881 } … … 886 892 if (sdp_message_m_attr_has_type(ca->remote_sdp, "audio")) 887 893 ca->nego_mflags |= PH_STREAM_AUDIO; 894 #ifdef PHAPI_VIDEO_SUPPORT 888 895 if (sdp_message_m_attr_has_type(ca->remote_sdp, "video")) 889 896 ca->nego_mflags |= PH_STREAM_VIDEO; 897 #endif 890 898 osip_free(sdp); 891 899 } … … 967 975 static int ph_call_hasvideo(phcall_t *ca) 968 976 { 977 #ifdef PHAPI_VIDEO_SUPPORT 969 978 if (ca->mses && (ca->mses->activestreams & (1 << PH_MSTREAM_VIDEO1))) 970 979 return 1; 980 #endif 971 981 return 0; 972 982 } … … 3747 3757 PHAPI_EXPORT int phChangeVideoDevices(const char *devstr) 3748 3758 { 3759 #ifdef PHAPI_VIDEO_SUPPORT 3749 3760 if (devstr) 3750 3761 osip_strncpy(phcfg.video_config.video_device, devstr, sizeof(phcfg.video_config.video_device)-1); 3762 #endif 3751 3763 3752 3764 return 0;
Note: See TracChangeset
for help on using the changeset viewer.
