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
This commit is contained in:
Sreerenj Balachandran 2014-11-18 14:07:57 +02:00 committed by Gwenole Beauchesne
parent d1b7dc21f8
commit 0ddf6b21b9

View file

@ -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,