summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-05-16 18:54:32 +0300
committerSebastian Dröge <sebastian@centricular.com>2017-05-29 11:06:30 +0300
commit55108a43f6bbe0738aa57afaf72ebdb8aa187cd9 (patch)
treedba5c062c1b7ac72201e9186ebfb2bedf9094c0a
parent83377f7185ca9ed57f44af58e135b31d53a34d54 (diff)
downloadgst-libav-55108a43f6bbe0738aa57afaf72ebdb8aa187cd9.tar.gz
avviddec: Don't expose NVIDIA CUVID decoder
It's not working without further changes on our side, like all hardware decoders in ffmpeg.
-rw-r--r--ext/libav/gstavviddec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c
index e66ee4e..453dbbd 100644
--- a/ext/libav/gstavviddec.c
+++ b/ext/libav/gstavviddec.c
@@ -2092,6 +2092,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 */