avviddec: Don't expose NVIDIA CUVID decoder
authorSebastian Dröge <sebastian@centricular.com>
Tue, 16 May 2017 15:54:32 +0000 (18:54 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 16 May 2017 15:55:36 +0000 (18:55 +0300)
It's not working without further changes on our side, like all hardware
decoders in ffmpeg.

ext/libav/gstavviddec.c

index 1f6edc3..251823b 100644 (file)
@@ -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 */