summaryrefslogtreecommitdiff
path: root/src/VideoSupport.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-07-09 12:10:38 +0200
commit709e2d6f5652ec90c194a4ec2b530bebc6f952cb (patch)
tree496b2f3899e1d5728ee9ae76095cc5056c317447 /src/VideoSupport.vala
parentf1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (diff)
parent5c8be07095cc04a6d8a95204b0504fd7ab030154 (diff)
Merge branch 'release/0.28.3-1'0.28.3-1
Diffstat (limited to 'src/VideoSupport.vala')
-rw-r--r--src/VideoSupport.vala13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/VideoSupport.vala b/src/VideoSupport.vala
index d742dda..857a901 100644
--- a/src/VideoSupport.vala
+++ b/src/VideoSupport.vala
@@ -404,15 +404,12 @@ public class Video : VideoSource, Flaggable, Monitorable, Dateable {
* https://bugzilla.gnome.org/show_bug.cgi?id=762416
*/
- var feature = registry.find_feature ("vaapidecodebin",
- typeof (Gst.ElementFactory));
- if (feature != null) {
- registry.remove_feature (feature);
- }
+ var features = registry.feature_filter ((f) => {
+ return f.get_name ().has_prefix ("vaapi");
+ }, false);
- feature = registry.find_feature ("vaapidecode",
- typeof (Gst.ElementFactory));
- if (feature != null) {
+ foreach (var feature in features) {
+ debug ("Removing registry feature %s", feature.get_name ());
registry.remove_feature (feature);
}