Prepare for hardware encoders

This commit is contained in:
loki
2020-03-25 10:51:32 +01:00
parent a9423574fe
commit 55705af922
6 changed files with 352 additions and 170 deletions
-3
View File
@@ -541,8 +541,6 @@ void launch(resp_https_t response, req_https_t request) {
response->write(data.str());
});
BOOST_LOG(fatal) << stream::session_count();
if(stream::session_count() == config::stream.channels) {
tree.put("root.resume", 0);
tree.put("root.<xmlattr>.status_code", 503);
@@ -601,7 +599,6 @@ void resume(resp_https_t response, req_https_t request) {
// It is possible that due a race condition that this if-statement gives a false negative,
// that is automatically resolved in rtsp_server_t
if(stream::session_count() == config::stream.channels) {
BOOST_LOG(fatal) << stream::session_count();
tree.put("root.resume", 0);
tree.put("root.<xmlattr>.status_code", 503);