diff options
author | Jens Georg <mail@jensge.org> | 2016-12-16 23:31:04 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2016-12-16 23:31:04 +0100 |
commit | 8778022ccacfad8578afdbb6b6f21ba2869bfe9e (patch) | |
tree | cf99d28f432ca864d4747abd530ab41adecc1766 /src | |
parent | 344358f05c940bea1d099550da31cf7849951817 (diff) | |
download | rygel-8778022ccacfad8578afdbb6b6f21ba2869bfe9e.tar.gz |
media-export: Blacklist vaapi
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/media-export/rygel-media-export-extract.vala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/plugins/media-export/rygel-media-export-extract.vala b/src/plugins/media-export/rygel-media-export-extract.vala index ec1c5350..3bcea368 100644 --- a/src/plugins/media-export/rygel-media-export-extract.vala +++ b/src/plugins/media-export/rygel-media-export-extract.vala @@ -145,6 +145,14 @@ static void send_error (File file, Error err) { } } +static bool vaapi_filter (Gst.PluginFeature feature) { + if (feature.get_name ().has_prefix ("vaapi")) { + return true; + } + + return false; +} + int main (string[] args) { var ctx = new OptionContext (_("— helper binary for Rygel to extract metadata")); ctx.add_main_entries (options, null); @@ -160,6 +168,13 @@ int main (string[] args) { Posix.nice (19); + var registry = Gst.Registry.@get (); + var features = registry.feature_filter (vaapi_filter, false); + foreach (var feature in features) { + debug ("Removing registry feature %s", feature.get_name ()); + registry.remove_feature (feature); + } + message ("Started with descriptors %d (in) %d (out)", in_fd, out_fd); input_stream = new DataInputStream (new UnixInputStream (in_fd, true)); |