1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix #1230, racing condition in source fetch or create. 3.0.110

This commit is contained in:
winlin 2020-01-28 21:35:06 +08:00
parent 5d365bade8
commit adf7ef4511
6 changed files with 24 additions and 4 deletions

View file

@ -33,6 +33,7 @@
#include <srs_app_st.hpp>
#include <srs_app_reload.hpp>
#include <srs_core_performance.hpp>
#include <srs_service_st.hpp>
class SrsFormat;
class SrsRtmpFormat;
@ -443,6 +444,7 @@ public:
class SrsSourceManager
{
private:
srs_mutex_t lock;
std::map<std::string, SrsSource*> pool;
public:
SrsSourceManager();