diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-29 23:25:59 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-29 23:25:59 +0200 |
commit | 6944ad9f9346341ee0fd120ec3ed0b7b56406436 (patch) | |
tree | ae59422da384a9463c306e1983be5ac46ff97c7d /thumbnailer/shotwell-video-thumbnailer.vala | |
parent | 803e11e1c311a7ba4923d8d438eafa7ff62b463d (diff) | |
parent | 72e3d4c55a6569d966059f762824c38d06055871 (diff) |
Merge tag 'upstream/0.25.0'
Upstream version 0.25.0
Diffstat (limited to 'thumbnailer/shotwell-video-thumbnailer.vala')
-rw-r--r-- | thumbnailer/shotwell-video-thumbnailer.vala | 16 |
1 files changed, 15 insertions, 1 deletions
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; |