[totem/wip/hadess/vcd-config] grilo: Move code to config file




commit cefdff39868a3ef4798b2d1ea9354e1ee612ffb6
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 19 16:10:53 2020 +0200

    grilo: Move code to config file
    
    No need for this to be code, it's a static configuration option.

 src/totem-grilo.c    | 6 ------
 src/totem-grilo.conf | 5 +++++
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 7a63bad59..e54213305 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1460,12 +1460,6 @@ load_grilo_plugins (TotemGrilo *self)
        }
        g_strfreev (configs);
 
-       /* GStreamer does not support VCDs:
-        * https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/203 */
-       config = grl_config_new ("grl-optical-media", NULL);
-       grl_config_set_string (config, "ignored-scheme", "vcd");
-       grl_registry_add_config (registry, config, NULL);
-
        g_signal_connect (registry, "source-added",
                          G_CALLBACK (source_added_cb), self);
        g_signal_connect (registry, "source-removed",
diff --git a/src/totem-grilo.conf b/src/totem-grilo.conf
index 8ba8f93b9..afb432832 100644
--- a/src/totem-grilo.conf
+++ b/src/totem-grilo.conf
@@ -17,3 +17,8 @@ api-key         = 3F476CEF2FBD0FB0
 
 [grl-apple-trailers]
 xlarge          = true
+
+[grl-optical-media]
+# GStreamer does not support VCDs:
+# https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/merge_requests/203
+ignored-scheme=vcd


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]