Merge branch 'move_subdir_good' into tizen_gst_1.19.2_mono
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-good / sys / v4l2 / gstv4l2videoenc.c
index 19496b7..c9455ef 100644 (file)
@@ -1247,8 +1247,13 @@ gst_v4l2_video_enc_register (GstPlugin * plugin, GType type,
 
   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_SECONDARY, 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);
 }