[rygel] media-export: Blacklist vaapi
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Blacklist vaapi
- Date: Fri, 16 Dec 2016 22:31:33 +0000 (UTC)
commit 8778022ccacfad8578afdbb6b6f21ba2869bfe9e
Author: Jens Georg <mail jensge org>
Date: Fri Dec 16 23:31:04 2016 +0100
media-export: Blacklist vaapi
Signed-off-by: Jens Georg <mail jensge org>
.../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 ec1c535..3bcea36 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]