mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 02:22:52 +00:00
Don't trust VT to tell us whether decode is supported
This commit is contained in:
parent
94ffda653c
commit
6cab2bec61
@ -244,8 +244,11 @@ public:
|
|||||||
|
|
||||||
virtual bool needsTestFrame() override
|
virtual bool needsTestFrame() override
|
||||||
{
|
{
|
||||||
// We query VT to determine whether the codec is supported
|
// We used to trust VT to tell us whether decode will work, but
|
||||||
return false;
|
// there are cases where it can lie because the hardware technically
|
||||||
|
// can decode the format but VT is unserviceable for some other reason.
|
||||||
|
// Decoding the test frame will tell us for sure whether it will work.
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int getDecoderCapabilities() override
|
virtual int getDecoderCapabilities() override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user