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:
parent
5d365bade8
commit
adf7ef4511
6 changed files with 24 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue