v4l2video: decrease plugin rank
[platform/upstream/gst-plugins-good.git] / sys / v4l2 / gstv4l2videodec.c
index 39f845c..0ce881c 100644 (file)
@@ -1168,9 +1168,15 @@ gst_v4l2_video_dec_register (GstPlugin * plugin, const gchar * basename,
     type_info.instance_init = gst_v4l2_video_dec_subinstance_init;
 
     subtype = g_type_register_static (type, type_name, &type_info, 0);
+#ifdef TIZEN_FEATURE_V4L2VIDEO_ADJ_RANK
+    if (!gst_element_register (plugin, type_name, GST_RANK_PRIMARY,
+            subtype))
+      GST_WARNING ("Failed to register plugin '%s'", type_name);
+#else
     if (!gst_element_register (plugin, type_name, GST_RANK_PRIMARY + 1,
             subtype))
       GST_WARNING ("Failed to register plugin '%s'", type_name);
+#endif
 
     g_free (type_name);
   }