summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-10-25 17:10:15 +0200
committerEdward Hervey <bilboed@bilboed.com>2017-10-25 17:10:15 +0200
commit4844adf193b8ea4d289898f0a0019daad47731c1 (patch)
tree6c9745c44cdb6b1f366141466f8872b4847d58fe /gst
parent9f2d7d2378f34959353160607d751d70f3075f0e (diff)
gst: Fix build with option parsing disabled
Diffstat (limited to 'gst')
-rw-r--r--gst/gst.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gst/gst.c b/gst/gst.c
index 805dd7dce..cebfc4ad4 100644
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -492,7 +492,8 @@ gst_is_initialized (void)
return gst_initialized;
}
-#ifndef GST_DISABLE_REGISTRY
+#ifndef GST_DISABLE_OPTION_PARSING
+# ifndef GST_DISABLE_REGISTRY
static void
add_path_func (gpointer data, gpointer user_data)
{
@@ -500,6 +501,7 @@ add_path_func (gpointer data, gpointer user_data)
_priv_gst_plugin_paths =
g_list_append (_priv_gst_plugin_paths, g_strdup (data));
}
+# endif
#endif
#ifndef GST_DISABLE_OPTION_PARSING
@@ -813,7 +815,8 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
return TRUE;
}
-#ifndef GST_DISABLE_GST_DEBUG
+#ifndef GST_DISABLE_OPTION_PARSING
+# ifndef GST_DISABLE_GST_DEBUG
static gboolean
select_all (GstPlugin * plugin, gpointer user_data)
{
@@ -935,7 +938,8 @@ gst_debug_help (void)
g_slist_free (list);
g_print ("\n");
}
-#endif
+# endif /* GST_DISABLE_OPTION_PARSING */
+#endif /* GST_DISABLE_GST_DEBUG */
#ifndef GST_DISABLE_OPTION_PARSING
static gboolean