Commit 408a678a by xiongziliang

修复编译问题:#584

parent 751f42fe
...@@ -1155,8 +1155,6 @@ void installWebApi() { ...@@ -1155,8 +1155,6 @@ void installWebApi() {
} }
void unInstallWebApi(){ void unInstallWebApi(){
RtpSelector::Instance().clear();
{ {
lock_guard<recursive_mutex> lck(s_proxyMapMtx); lock_guard<recursive_mutex> lck(s_proxyMapMtx);
s_proxyMap.clear(); s_proxyMap.clear();
...@@ -1169,6 +1167,7 @@ void unInstallWebApi(){ ...@@ -1169,6 +1167,7 @@ void unInstallWebApi(){
{ {
#if defined(ENABLE_RTPPROXY) #if defined(ENABLE_RTPPROXY)
RtpSelector::Instance().clear();
lock_guard<recursive_mutex> lck(s_rtpServerMapMtx); lock_guard<recursive_mutex> lck(s_rtpServerMapMtx);
s_rtpServerMap.clear(); s_rtpServerMap.clear();
#endif #endif
......
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#include "RtpCache.h" #include "RtpCache.h"
#if defined(ENABLE_RTPPROXY)
namespace mediakit{ namespace mediakit{
RtpCache::RtpCache(onFlushed cb) { RtpCache::RtpCache(onFlushed cb) {
...@@ -31,3 +33,5 @@ void RtpCachePS::onRTP(Buffer::Ptr buffer) { ...@@ -31,3 +33,5 @@ void RtpCachePS::onRTP(Buffer::Ptr buffer) {
} }
}//namespace mediakit }//namespace mediakit
#endif//#if defined(ENABLE_RTPPROXY)
\ No newline at end of file
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#ifndef ZLMEDIAKIT_RTPCACHE_H #ifndef ZLMEDIAKIT_RTPCACHE_H
#define ZLMEDIAKIT_RTPCACHE_H #define ZLMEDIAKIT_RTPCACHE_H
#if defined(ENABLE_RTPPROXY)
#include "PSEncoder.h" #include "PSEncoder.h"
#include "Extension/CommonRtp.h" #include "Extension/CommonRtp.h"
...@@ -46,4 +48,5 @@ protected: ...@@ -46,4 +48,5 @@ protected:
}; };
}//namespace mediakit }//namespace mediakit
#endif//ENABLE_RTPPROXY
#endif //ZLMEDIAKIT_RTPCACHE_H #endif //ZLMEDIAKIT_RTPCACHE_H
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论