[tracker-miners/wip/carlosg/truly-disable-nvcodec] tracker-extract: Use the right name to drop NVidia codecs from GST registry
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/truly-disable-nvcodec] tracker-extract: Use the right name to drop NVidia codecs from GST registry
- Date: Wed, 3 Nov 2021 12:53:00 +0000 (UTC)
commit 520378f3a0f0f0d6ef321e7cb30d053fea7ae243
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Nov 3 13:47:47 2021 +0100
tracker-extract: Use the right name to drop NVidia codecs from GST registry
This wants the "plugin name" as derived from the .so filename, not the
specific elements that the .so file provides. This makes NVidia codecs
truly ignored.
Also, add debug output around plugins being removed, it should make
future similar situations clearer.
Fixes: https://gitlab.gnome.org/GNOME/tracker-miners/-/issues/205
src/tracker-extract/tracker-extract-gstreamer.c | 16 +++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index ea1985aa2..14193bb7a 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1413,16 +1413,7 @@ tracker_extract_module_init (GError **error)
"fluiddec",
"vaapi",
"video4linux2",
- "nvmpegvideodec",
- "nvmpeg2videodec",
- "nvmpeg4videodec",
- "nvh264sldec",
- "nvh264dec",
- "nvjpegdec",
- "nvh265sldec",
- "nvh265dec",
- "nvvp8dec",
- "nvvp9dec",
+ "nvcodec",
};
GstRegistry *registry;
guint i;
@@ -1434,8 +1425,11 @@ tracker_extract_module_init (GError **error)
GstPlugin *plugin =
gst_registry_find_plugin (registry,
blocklisted[i]);
- if (plugin)
+ if (plugin) {
+ g_debug ("Removing GStreamer plugin '%s' from registry",
+ blocklisted[i]);
gst_registry_remove_plugin (registry, plugin);
+ }
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]