From 72e3d4c55a6569d966059f762824c38d06055871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 29 Oct 2016 23:24:31 +0200 Subject: New upstream version 0.25.0 --- thumbnailer/shotwell-video-thumbnailer.vala | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'thumbnailer/shotwell-video-thumbnailer.vala') diff --git a/thumbnailer/shotwell-video-thumbnailer.vala b/thumbnailer/shotwell-video-thumbnailer.vala index 437d132..234868a 100644 --- a/thumbnailer/shotwell-video-thumbnailer.vala +++ b/thumbnailer/shotwell-video-thumbnailer.vala @@ -21,7 +21,21 @@ class ShotwellThumbnailer { Gst.StateChangeReturn ret; Gst.init(ref args); - + + var registry = Gst.Registry.@get (); + + var feature = registry.find_feature ("vaapidecodebin", + typeof (Gst.ElementFactory)); + if (feature != null) { + registry.remove_feature (feature); + } + + feature = registry.find_feature ("vaapidecode", + typeof (Gst.ElementFactory)); + if (feature != null) { + registry.remove_feature (feature); + } + if (args.length != 2) { stdout.printf("usage: %s [filename]\n Writes video thumbnail to stdout\n", args[0]); return 1; -- cgit v1.2.3