Commit d2132142 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

videomanager: save hardware acceleration config

Change-Id: I00b5cc01709b566af3ffc0c1444ddf5fb6e40ef7
parent 6a34602c
...@@ -544,6 +544,7 @@ setDecodingAccelerated(bool state) ...@@ -544,6 +544,7 @@ setDecodingAccelerated(bool state)
#ifdef RING_ACCEL #ifdef RING_ACCEL
JAMI_DBG("%s hardware acceleration", (state ? "Enabling" : "Disabling")); JAMI_DBG("%s hardware acceleration", (state ? "Enabling" : "Disabling"));
jami::Manager::instance().videoPreferences.setDecodingAccelerated(state); jami::Manager::instance().videoPreferences.setDecodingAccelerated(state);
jami::Manager::instance().saveConfig();
#endif #endif
} }
...@@ -563,6 +564,7 @@ setEncodingAccelerated(bool state) ...@@ -563,6 +564,7 @@ setEncodingAccelerated(bool state)
#ifdef RING_ACCEL #ifdef RING_ACCEL
JAMI_DBG("%s hardware acceleration", (state ? "Enabling" : "Disabling")); JAMI_DBG("%s hardware acceleration", (state ? "Enabling" : "Disabling"));
jami::Manager::instance().videoPreferences.setEncodingAccelerated(state); jami::Manager::instance().videoPreferences.setEncodingAccelerated(state);
jami::Manager::instance().saveConfig();
#endif #endif
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment