diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-29 23:24:31 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-10-29 23:24:31 +0200 |
commit | 72e3d4c55a6569d966059f762824c38d06055871 (patch) | |
tree | cc0013086494a7c97140ffdb4a0513a5f5aac245 /thumbnailer/shotwell-video-thumbnailer.vala | |
parent | b076314018e4b53d745823754a26eb6fb73a2801 (diff) |
New upstream version 0.25.0upstream/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; |