From 0ddf6b21b960c43e11e196322ae709ad84ea8124 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Tue, 18 Nov 2014 14:07:57 +0200 Subject: [PATCH] vaapidecode: increase the rank to GST_RANK_PRIMARY + 1 This is for helping decodebin to autoplug the vaapidecode element. Decodebin is selecting decoder elements only based on rank and caps. Without overriding the autoplug-* signals there is no way to autoplug HW decoders inside decodebin. An easier soulution is to raise the rank of vaapidecode, so that it gets selected first. https://bugzilla.gnome.org/show_bug.cgi?id=739332 --- gst/vaapi/gstvaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapi.c b/gst/vaapi/gstvaapi.c index 34358b8..abe9da4 100644 --- a/gst/vaapi/gstvaapi.c +++ b/gst/vaapi/gstvaapi.c @@ -51,7 +51,7 @@ plugin_init (GstPlugin *plugin) GST_TYPE_VAAPIUPLOAD); #endif gst_element_register(plugin, "vaapidecode", - GST_RANK_PRIMARY, + GST_RANK_PRIMARY + 1, GST_TYPE_VAAPIDECODE); gst_element_register(plugin, "vaapipostproc", GST_RANK_PRIMARY, -- 2.7.4