mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2026-08-09 02:32:56 +00:00
remove launch session raise
This commit is contained in:
parent
203b04bafd
commit
c2b6b6a6dc
14
src/main.cpp
14
src/main.cpp
@ -743,20 +743,6 @@ main(int argc, char *argv[]) {
|
||||
|
||||
|
||||
|
||||
rtsp_stream::launch_session_raise(rtsp_stream::launch_session_t{
|
||||
util::from_hex<crypto::aes_t>("", true),
|
||||
util::from_hex<crypto::aes_t>("", true),
|
||||
true,
|
||||
"unique_id",
|
||||
1920,
|
||||
1080,
|
||||
60,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
true
|
||||
});
|
||||
rtsp_stream::rtpThread();
|
||||
|
||||
|
||||
|
||||
14
src/rtsp.cpp
14
src/rtsp.cpp
@ -598,14 +598,6 @@ namespace rtsp_stream {
|
||||
auto seqn_str = std::to_string(req->sequenceNumber);
|
||||
option.content = const_cast<char *>(seqn_str.c_str());
|
||||
|
||||
if (!server->launch_event.peek()) {
|
||||
// /launch has not been used
|
||||
|
||||
respond(sock, &option, 503, "Service Unavailable", req->sequenceNumber, {});
|
||||
return;
|
||||
}
|
||||
auto launch_session { server->launch_event.pop() };
|
||||
|
||||
std::string_view payload { req->payload, (size_t) req->payloadLength };
|
||||
|
||||
std::vector<std::string_view> lines;
|
||||
@ -661,7 +653,7 @@ namespace rtsp_stream {
|
||||
|
||||
stream::config_t config;
|
||||
|
||||
config.audio.flags[audio::config_t::HOST_AUDIO] = launch_session->host_audio;
|
||||
config.audio.flags[audio::config_t::HOST_AUDIO] = true;
|
||||
try {
|
||||
config.audio.channels = util::from_view(args.at("x-nv-audio.surround.numChannels"sv));
|
||||
config.audio.mask = util::from_view(args.at("x-nv-audio.surround.channelMask"sv));
|
||||
@ -719,7 +711,9 @@ namespace rtsp_stream {
|
||||
return;
|
||||
}
|
||||
|
||||
auto session = stream::session::alloc(config, launch_session->gcm_key, launch_session->iv);
|
||||
auto a = util::from_hex<crypto::aes_t>("", true);
|
||||
auto b = util::from_hex<crypto::aes_t>("", true);
|
||||
auto session = stream::session::alloc(config, a,b);
|
||||
|
||||
auto slot = server->accept(session);
|
||||
if (!slot) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user