[totem/wip/hadess/add-sw-rendering: 9/9] main: Implement GSetting to disable hardware rendering
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/add-sw-rendering: 9/9] main: Implement GSetting to disable hardware rendering
- Date: Thu, 17 Feb 2022 10:57:02 +0000 (UTC)
commit 49338f7f350e03b5449aaeed506f1a22f6a34698
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 15 12:23:00 2022 +0100
main: Implement GSetting to disable hardware rendering
data/org.gnome.totem.gschema.xml.in | 5 +++++
src/totem-object.c | 4 ++++
2 files changed, 9 insertions(+)
---
diff --git a/data/org.gnome.totem.gschema.xml.in b/data/org.gnome.totem.gschema.xml.in
index a5cca3f89..bc9c68dfe 100644
--- a/data/org.gnome.totem.gschema.xml.in
+++ b/data/org.gnome.totem.gschema.xml.in
@@ -82,5 +82,10 @@
<summary>Directories to show</summary>
<description>Directories to show in the browse interface, none by
default</description>
</key>
+ <key name="force-software-decoders" type="b">
+ <default>false</default>
+ <summary>Disable hardware decoders</summary>
+ <description>Disable hardware decoders and use only software decoders. For debugging
purposes only.</description>
+ </key>
</schema>
</schemalist>
diff --git a/src/totem-object.c b/src/totem-object.c
index e89662fff..c8e6a8209 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -47,6 +47,7 @@
#include <string.h>
+#include "gst/totem-gst-helpers.h"
#include "totem.h"
#include "totem-private.h"
#include "totem-options.h"
@@ -4249,6 +4250,9 @@ video_widget_create (TotemObject *totem)
{
GError *err = NULL;
+ if (g_settings_get_boolean (totem->settings, "force-software-decoders"))
+ totem_gst_disable_hardware_decoders ();
+
if (!bacon_video_widget_check_init (totem->bvw, &err)) {
totem_object_show_error_and_exit (_("Totem could not startup."), err != NULL ? err->message :
_("No reason."), totem);
if (err != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]