From 15a17f3f8d2282005e746507f833e68947e736e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 16 May 2017 18:54:32 +0300 Subject: [PATCH] avviddec: Don't expose NVIDIA CUVID decoder It's not working without further changes on our side, like all hardware decoders in ffmpeg. --- ext/libav/gstavviddec.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 1f6edc3fc5..251823b653 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -2307,6 +2307,13 @@ gst_ffmpegviddec_register (GstPlugin * plugin) goto next; } + if (g_str_has_suffix (in_plugin->name, "_cuvid")) { + GST_DEBUG + ("Ignoring CUVID decoder %s. We can't handle this outside of ffmpeg", + in_plugin->name); + goto next; + } + GST_DEBUG ("Trying plugin %s [%s]", in_plugin->name, in_plugin->long_name); /* no codecs for which we're GUARANTEED to have better alternatives */