Merge branch 'upstream/1.16' into tizen_gst_1.16.2
[platform/upstream/gst-plugins-good.git] / sys / v4l2 / gstv4l2.c
index c2c1d21..e3e54d1 100644 (file)
@@ -248,15 +248,18 @@ gst_v4l2_probe_and_register (GstPlugin * plugin)
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+#ifndef TIZEN_FEATURE_DISABLE_V4L2_DEPENDENCY
   const gchar *paths[] = { "/dev", "/dev/v4l2", NULL };
   const gchar *names[] = { "video", NULL };
+#endif /* TIZEN_FEATURE_DISABLE_V4L2_DEPENDENCY */
 
   GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls");
-
+#ifndef TIZEN_FEATURE_DISABLE_V4L2_DEPENDENCY
   /* Add some depedency, so the dynamic features get updated upon changes in
    * /dev/video* */
   gst_plugin_add_dependency (plugin,
       NULL, paths, names, GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_PREFIX);
+#endif /* TIZEN_FEATURE_DISABLE_V4L2_DEPENDENCY */
 
   if (!gst_element_register (plugin, "v4l2src", GST_RANK_PRIMARY,
           GST_TYPE_V4L2SRC) ||