Changeset 6074 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Sep 23, 2019 10:47:05 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r6051 r6074 479 479 * Endpoint instance 480 480 */ 481 Endpoint::Endpoint() 482 : writer(NULL), threadDescMutex(NULL), mediaListMutex(NULL), 483 mainThreadOnly(false), mainThread(NULL), pendingJobSize(0) 481 Endpoint::Endpoint(): 482 #if !DEPRECATED_FOR_TICKET_2232 483 mediaListMutex(NULL), 484 #endif 485 writer(NULL), threadDescMutex(NULL), mainThreadOnly(false), 486 mainThread(NULL), pendingJobSize(0) 484 487 { 485 488 if (instance_) { … … 505 508 } 506 509 510 #if !DEPRECATED_FOR_TICKET_2232 507 511 clearCodecInfoList(codecInfoList); 508 512 clearCodecInfoList(videoCodecInfoList); 513 #endif 509 514 510 515 try { … … 1714 1719 &threadDescMutex) ); 1715 1720 1721 #if !DEPRECATED_FOR_TICKET_2232 1716 1722 PJSUA2_CHECK_EXPR( pj_mutex_create_recursive(pjsua_var.pool, "mediaList", 1717 1723 &mediaListMutex) ); 1724 #endif 1718 1725 } 1719 1726 … … 1783 1790 } 1784 1791 1792 #if !DEPRECATED_FOR_TICKET_2232 1785 1793 while(mediaList.size() > 0) { 1786 1794 AudioMedia *cur_media = mediaList[0]; … … 1792 1800 mediaListMutex = NULL; 1793 1801 } 1802 #endif 1794 1803 1795 1804 status = pjsua_destroy2(flags); … … 2047 2056 } 2048 2057 2058 #if !DEPRECATED_FOR_TICKET_2232 2049 2059 const AudioMediaVector &Endpoint::mediaEnumPorts() const PJSUA2_THROW(Error) 2050 2060 { 2051 2061 return mediaList; 2052 2062 } 2063 #endif 2053 2064 2054 2065 AudioMediaVector2 Endpoint::mediaEnumPorts2() const PJSUA2_THROW(Error) … … 2090 2101 void Endpoint::mediaAdd(AudioMedia &media) 2091 2102 { 2103 #if !DEPRECATED_FOR_TICKET_2232 2092 2104 /* mediaList serves mediaEnumPorts() only, once mediaEnumPorts() 2093 2105 * is removed, this function implementation should be no-op. … … 2102 2114 mediaList.push_back(&media); 2103 2115 pj_mutex_unlock(mediaListMutex); 2116 #else 2117 PJ_UNUSED_ARG(media); 2118 #endif 2104 2119 } 2105 2120 2106 2121 void Endpoint::mediaRemove(AudioMedia &media) 2107 2122 { 2123 #if !DEPRECATED_FOR_TICKET_2232 2108 2124 /* mediaList serves mediaEnumPorts() only, once mediaEnumPorts() 2109 2125 * is removed, this function implementation should be no-op. … … 2117 2133 mediaList.erase(it); 2118 2134 pj_mutex_unlock(mediaListMutex); 2135 #else 2136 PJ_UNUSED_ARG(media); 2137 #endif 2119 2138 } 2120 2139 … … 2142 2161 * Codec operations. 2143 2162 */ 2163 2164 #if !DEPRECATED_FOR_TICKET_2232 2144 2165 const CodecInfoVector &Endpoint::codecEnum() PJSUA2_THROW(Error) 2145 2166 { … … 2152 2173 return codecInfoList; 2153 2174 } 2175 #endif 2154 2176 2155 2177 CodecInfoVector2 Endpoint::codecEnum2() const PJSUA2_THROW(Error) … … 2220 2242 } 2221 2243 2244 #if !DEPRECATED_FOR_TICKET_2232 2222 2245 const CodecInfoVector &Endpoint::videoCodecEnum() PJSUA2_THROW(Error) 2223 2246 { … … 2232 2255 return videoCodecInfoList; 2233 2256 } 2257 #endif 2234 2258 2235 2259 CodecInfoVector2 Endpoint::videoCodecEnum2() const PJSUA2_THROW(Error)
Note: See TracChangeset
for help on using the changeset viewer.