mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-22 12:40:11 +00:00
Fix hwdevice being destroyed before context, causing a sigsegv because the context relies on the hwdevice still being active.
This commit is contained in:
parent
6da0483951
commit
a31c6c4cd0
@ -324,7 +324,7 @@ struct encoder_t {
|
|||||||
class session_t {
|
class session_t {
|
||||||
public:
|
public:
|
||||||
session_t() = default;
|
session_t() = default;
|
||||||
session_t(ctx_t &&ctx, std::shared_ptr<platf::hwdevice_t> &&device, int inject) : ctx { std::move(ctx) }, device { std::move(device) }, inject { inject } {}
|
session_t(ctx_t &&ctx, std::shared_ptr<platf::hwdevice_t> &&device, int inject) : device { std::move(device) }, ctx { std::move(ctx) }, inject { inject } {}
|
||||||
|
|
||||||
session_t(session_t &&other) noexcept = default;
|
session_t(session_t &&other) noexcept = default;
|
||||||
|
|
||||||
@ -341,8 +341,8 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx_t ctx;
|
|
||||||
std::shared_ptr<platf::hwdevice_t> device;
|
std::shared_ptr<platf::hwdevice_t> device;
|
||||||
|
ctx_t ctx;
|
||||||
|
|
||||||
std::vector<packet_raw_t::replace_t> replacements;
|
std::vector<packet_raw_t::replace_t> replacements;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user