Skip to content
Snippets Groups Projects
Commit 9587ef90 authored by Philippe Gorley's avatar Philippe Gorley Committed by Guillaume Roguez
Browse files

enable hardware decoding by default


This only activates hardware decoding if the setting wasn't found
in dring.yml or if there was an error while reading the file.

Change-Id: Ib256e327a4136a72df11873e9b0c662e0e00afce
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent ed931f6a
Branches
No related tags found
No related merge requests found
......@@ -548,7 +548,7 @@ void ShortcutPreferences::unserialize(const YAML::Node &in)
#ifdef RING_VIDEO
VideoPreferences::VideoPreferences()
#ifdef RING_ACCEL
: decodingAccelerated_(false)
: decodingAccelerated_(true)
#endif
{
}
......@@ -570,7 +570,7 @@ void VideoPreferences::unserialize(const YAML::Node &in)
// value may or may not be present
try {
parseValue(node, DECODING_ACCELERATED_KEY, decodingAccelerated_);
} catch (...) { decodingAccelerated_ = false; } // experimental, so disabled by default
} catch (...) { decodingAccelerated_ = true; }
#endif
getVideoDeviceMonitor().unserialize(in);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment