MMFMWK-7954 waylandsink: set to default video sink on 8qxp

upstream status: imx specific
diff --git a/ext/wayland/gstwaylandsink.c b/ext/wayland/gstwaylandsink.c
index 449737e..c30c9e7 100644
--- a/ext/wayland/gstwaylandsink.c
+++ b/ext/wayland/gstwaylandsink.c
@@ -47,6 +47,8 @@
 #include "wlshmallocator.h"
 #include "wllinuxdmabuf.h"
 
+#include "gstimxcommon.h"
+
 #include <gst/wayland/wayland.h>
 #include <gst/video/videooverlay.h>
 
@@ -1019,12 +1021,21 @@
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+  GstRank rank = GST_RANK_MARGINAL;
+
   GST_DEBUG_CATEGORY_INIT (gstwayland_debug, "waylandsink", 0,
       " wayland video sink");
 
   gst_wl_shm_allocator_register ();
+  
+  if (HAS_DPU()) {
+    if (HAS_VPU())
+      rank = IMX_GST_PLUGIN_RANK + 1;
+  } else if (HAS_DCSS()) {
+    rank = IMX_GST_PLUGIN_RANK;
+  }
 
-  return gst_element_register (plugin, "waylandsink", GST_RANK_MARGINAL,
+  return gst_element_register (plugin, "waylandsink", rank,
       GST_TYPE_WAYLAND_SINK);
 }