mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-03 17:54:00 +00:00
Fixed segfault
This commit is contained in:
parent
834d5cb59b
commit
2011e310d5
@ -42,7 +42,7 @@ public:
|
||||
|
||||
~vigem_t() {
|
||||
if(client) {
|
||||
if(vigem_target_is_attached(x360.get())) {
|
||||
if(x360 && vigem_target_is_attached(x360.get())) {
|
||||
auto status = vigem_target_remove(client.get(), x360.get());
|
||||
if(!VIGEM_SUCCESS(status)) {
|
||||
BOOST_LOG(warning) << "Couldn't detach gamepad from ViGEm ["sv << util::hex(status).to_string_view() << ']';
|
||||
|
@ -93,7 +93,9 @@ struct audio_packet_raw_t {
|
||||
#pragma pack(pop)
|
||||
|
||||
safe::event_t<launch_session_t> launch_event;
|
||||
auto input = std::make_shared<input::input_t>();
|
||||
|
||||
//FIXME: This smells bad
|
||||
std::shared_ptr<input::input_t> input;
|
||||
|
||||
struct config_t {
|
||||
audio::config_t audio;
|
||||
@ -1016,6 +1018,7 @@ void cmd_play(host_t &host, peer_t peer, msg_t &&req) {
|
||||
}
|
||||
|
||||
void rtpThread() {
|
||||
input = std::make_shared<input::input_t>();
|
||||
rtsp_server_t server(RTSP_SETUP_PORT);
|
||||
|
||||
server.map("OPTIONS"sv, &cmd_option);
|
||||
|
Loading…
x
Reference in New Issue
Block a user