mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-30 17:49:07 +00:00
only init input if needed
This commit is contained in:
parent
6903575e31
commit
b3abed02b4
@ -140,7 +140,6 @@ main(int argc, char *argv[]) {
|
||||
BOOST_LOG(error) << "Platform failed to initialize"sv;
|
||||
}
|
||||
|
||||
auto input_deinit_guard = input::init();
|
||||
|
||||
int queuetype = -1;
|
||||
std::stringstream ss; ss << argv[2]; ss >> queuetype;
|
||||
@ -153,6 +152,10 @@ main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
if(queuetype == QueueType::Input) {
|
||||
auto input_deinit_guard = input::init();
|
||||
}
|
||||
|
||||
//Get buffer local address from handle
|
||||
SharedMemory* memory = obtain_shared_memory(argv[1]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user