mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2026-08-09 00:18:49 +00:00
remove rtsp session
This commit is contained in:
parent
c2b6b6a6dc
commit
68740944db
@ -789,8 +789,6 @@ namespace nvhttp {
|
||||
}
|
||||
}
|
||||
|
||||
rtsp_stream::launch_session_raise(launch_session);
|
||||
|
||||
tree.put("root.<xmlattr>.status_code", 200);
|
||||
tree.put("root.sessionUrl0", "rtsp://"s + net::addr_to_url_escaped_string(request->local_endpoint().address()) + ':' + std::to_string(map_port(rtsp_stream::RTSP_SETUP_PORT)));
|
||||
tree.put("root.gamesession", 1);
|
||||
@ -860,8 +858,6 @@ namespace nvhttp {
|
||||
}
|
||||
}
|
||||
|
||||
rtsp_stream::launch_session_raise(make_launch_session(host_audio, args));
|
||||
|
||||
tree.put("root.<xmlattr>.status_code", 200);
|
||||
tree.put("root.sessionUrl0", "rtsp://"s + net::addr_to_url_escaped_string(request->local_endpoint().address()) + ':' + std::to_string(map_port(rtsp_stream::RTSP_SETUP_PORT)));
|
||||
tree.put("root.resume", 1);
|
||||
|
||||
16
src/rtsp.cpp
16
src/rtsp.cpp
@ -395,18 +395,6 @@ namespace rtsp_stream {
|
||||
|
||||
rtsp_server_t server {};
|
||||
|
||||
void
|
||||
launch_session_raise(rtsp_stream::launch_session_t launch_session) {
|
||||
server.session_raise(launch_session);
|
||||
}
|
||||
|
||||
int
|
||||
session_count() {
|
||||
// Ensure session_count is up-to-date
|
||||
server.clear(false);
|
||||
|
||||
return server.session_count();
|
||||
}
|
||||
|
||||
int
|
||||
send(tcp::socket &sock, const std::string_view &sv) {
|
||||
@ -711,8 +699,8 @@ namespace rtsp_stream {
|
||||
return;
|
||||
}
|
||||
|
||||
auto a = util::from_hex<crypto::aes_t>("", true);
|
||||
auto b = util::from_hex<crypto::aes_t>("", true);
|
||||
auto a = util::from_hex<crypto::aes_t>("0", true);
|
||||
auto b = util::from_hex<crypto::aes_t>("0", true);
|
||||
auto session = stream::session::alloc(config, a,b);
|
||||
|
||||
auto slot = server->accept(session);
|
||||
|
||||
@ -28,11 +28,6 @@ namespace rtsp_stream {
|
||||
bool enable_sops;
|
||||
};
|
||||
|
||||
void
|
||||
launch_session_raise(launch_session_t launch_session);
|
||||
int
|
||||
session_count();
|
||||
|
||||
void
|
||||
rtpThread();
|
||||
|
||||
|
||||
@ -987,11 +987,6 @@ namespace stream {
|
||||
}
|
||||
|
||||
// Don't break until any pending sessions either expire or connect
|
||||
if (proc::proc.running() == 0 && !has_session_awaiting_peer) {
|
||||
BOOST_LOG(info) << "Process terminated"sv;
|
||||
break;
|
||||
}
|
||||
|
||||
server->iterate(150ms);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user