summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-08-19 16:10:53 +0200
committerBastien Nocera <hadess@hadess.net>2020-08-19 16:12:46 +0200
commita29d6956728e8f2762729873076e4908cf16e6a1 (patch)
tree1935bcbf63e0d675cd5989000a1341bfb5f5abdb /src
parentee84b6d64f257bf80467dfa3d0a7552bc20bfb68 (diff)
downloadtotem-a29d6956728e8f2762729873076e4908cf16e6a1.tar.gz
grilo: Move VCD disablement to config file
No need for this to be code, it's a static configuration option.
Diffstat (limited to 'src')
-rw-r--r--src/totem-grilo.c6
-rw-r--r--src/totem-grilo.conf5
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