Changeset 5992
- Timestamp:
- May 15, 2019 2:57:44 AM (5 years ago)
- Location:
- pjproject/trunk/pjsip/src/pjsua2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5986 r5992 2068 2068 VideoMediaVector Endpoint::mediaEnumVidPorts() const throw(Error) 2069 2069 { 2070 #if PJSUA_HAS_VIDEO 2070 2071 VideoMediaVector vmv; 2071 2072 pjsua_conf_port_id ids[PJSUA_MAX_CONF_PORTS]; … … 2080 2081 2081 2082 return vmv; 2083 #else 2084 PJSUA2_RAISE_ERROR(PJ_EINVALIDOP); 2085 #endif 2082 2086 } 2083 2087 -
pjproject/trunk/pjsip/src/pjsua2/media.cpp
r5986 r5992 1869 1869 throw(Error) 1870 1870 { 1871 #if PJSUA_HAS_VIDEO 1871 1872 if (!pool) { 1872 1873 PJSUA2_RAISE_ERROR3(PJ_EINVAL, "registerMediaPort()", … … 1885 1886 (pjmedia_port*)port, NULL, 1886 1887 &id) ); 1888 #else 1889 PJ_UNUSED_ARG(port); 1890 PJ_UNUSED_ARG(pool); 1891 PJSUA2_RAISE_ERROR(PJ_EINVALIDOP); 1892 #endif 1887 1893 } 1888 1894 1889 1895 void VideoMedia::unregisterMediaPort() 1890 1896 { 1897 #if PJSUA_HAS_VIDEO 1891 1898 if (id != PJSUA_INVALID_ID) { 1892 1899 pjsua_vid_conf_remove_port(id); 1893 1900 id = PJSUA_INVALID_ID; 1894 1901 } 1902 #endif 1895 1903 } 1896 1904 … … 1911 1919 VidConfPortInfo VideoMedia::getPortInfoFromId(int port_id) throw(Error) 1912 1920 { 1921 #if PJSUA_HAS_VIDEO 1913 1922 pjsua_vid_conf_port_info pj_info; 1914 1923 VidConfPortInfo pi; … … 1917 1926 pi.fromPj(pj_info); 1918 1927 return pi; 1928 #else 1929 PJ_UNUSED_ARG(port_id); 1930 PJSUA2_RAISE_ERROR(PJ_EINVALIDOP); 1931 #endif 1919 1932 } 1920 1933 … … 1924 1937 { 1925 1938 PJ_UNUSED_ARG(param); 1939 #if PJSUA_HAS_VIDEO 1926 1940 PJSUA2_CHECK_EXPR( pjsua_vid_conf_connect(id, sink.id, NULL) ); 1941 #else 1942 PJ_UNUSED_ARG(sink); 1943 PJSUA2_RAISE_ERROR(PJ_EINVALIDOP); 1944 #endif 1927 1945 } 1928 1946 1929 1947 void VideoMedia::stopTransmit(const VideoMedia &sink) const throw(Error) 1930 1948 { 1949 #if PJSUA_HAS_VIDEO 1931 1950 PJSUA2_CHECK_EXPR( pjsua_vid_conf_disconnect(id, sink.id) ); 1932 } 1951 #else 1952 PJ_UNUSED_ARG(sink); 1953 PJSUA2_RAISE_ERROR(PJ_EINVALIDOP); 1954 #endif 1955 }
Note: See TracChangeset
for help on using the changeset viewer.