mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Hardware accelerated video decoding off by default.
This commit is contained in:
parent
bfe47a1ba2
commit
1c5a3aef54
2 changed files with 12 additions and 3 deletions
|
@ -239,8 +239,9 @@ QByteArray Settings::serialize() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
stream
|
stream
|
||||||
<< qint32(_hardwareAcceleratedVideo ? 1 : 0)
|
<< qint32(0) // old hardwareAcceleratedVideo
|
||||||
<< qint32(_chatQuickAction);
|
<< qint32(_chatQuickAction)
|
||||||
|
<< qint32(_hardwareAcceleratedVideo ? 1 : 0);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -514,11 +515,15 @@ void Settings::addFromSerialized(const QByteArray &serialized) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> hardwareAcceleratedVideo;
|
qint32 legacyHardwareAcceleratedVideo = 0;
|
||||||
|
stream >> legacyHardwareAcceleratedVideo;
|
||||||
}
|
}
|
||||||
if (!stream.atEnd()) {
|
if (!stream.atEnd()) {
|
||||||
stream >> chatQuickAction;
|
stream >> chatQuickAction;
|
||||||
}
|
}
|
||||||
|
if (!stream.atEnd()) {
|
||||||
|
stream >> hardwareAcceleratedVideo;
|
||||||
|
}
|
||||||
if (stream.status() != QDataStream::Ok) {
|
if (stream.status() != QDataStream::Ok) {
|
||||||
LOG(("App Error: "
|
LOG(("App Error: "
|
||||||
"Bad data for Core::Settings::constructFromSerialized()"));
|
"Bad data for Core::Settings::constructFromSerialized()"));
|
||||||
|
|
|
@ -792,7 +792,11 @@ private:
|
||||||
rpl::variable<Media::Player::OrderMode> _playerOrderMode;
|
rpl::variable<Media::Player::OrderMode> _playerOrderMode;
|
||||||
bool _macWarnBeforeQuit = true;
|
bool _macWarnBeforeQuit = true;
|
||||||
std::vector<uint64> _accountsOrder;
|
std::vector<uint64> _accountsOrder;
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
bool _hardwareAcceleratedVideo = true;
|
bool _hardwareAcceleratedVideo = true;
|
||||||
|
#else // Q_OS_MAC
|
||||||
|
bool _hardwareAcceleratedVideo = false;
|
||||||
|
#endif // Q_OS_MAC
|
||||||
HistoryView::DoubleClickQuickAction _chatQuickAction =
|
HistoryView::DoubleClickQuickAction _chatQuickAction =
|
||||||
HistoryView::DoubleClickQuickAction();
|
HistoryView::DoubleClickQuickAction();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue