From e2cca3d6995ca3f3d331ecd6fc8db95d2e069d1e Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 20 Feb 2006 23:34:40 +0000 Subject: [PATCH] gst/: Make things work with --disable-parse as they do with Original commit message from CVS: * gst/Makefile.am: * gst/gstparse.h: * gst/gstutils.c: * gst/gstutils.h: Make things work with --disable-parse as they do with --disable-load-save - the symbols involved disappear, but the header is still installed and GST_DISABLE_PARSE is included via gstconfig.h --- ChangeLog | 11 +++++++++++ gst/Makefile.am | 4 +--- gst/gstparse.h | 2 ++ gst/gstutils.c | 2 ++ gst/gstutils.h | 10 ++++++++++ 5 files changed, 26 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 19887592ff..72a386d61c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2006-02-21 Jan Schmidt + + * gst/Makefile.am: + * gst/gstparse.h: + * gst/gstutils.c: + * gst/gstutils.h: + Make things work with --disable-parse as they do with + --disable-load-save - the symbols involved disappear, but the + header is still installed and GST_DISABLE_PARSE is included via + gstconfig.h + 2006-02-20 Julien MOUTTE * libs/gst/base/gstbasetransform.c: diff --git a/gst/Makefile.am b/gst/Makefile.am index 3780b1d3c1..be18332e73 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -14,12 +14,10 @@ endif if GST_DISABLE_PARSE GST_PARSE_SRC = -GST_PARSE_H = SUBDIRS_PARSE = GST_PARSE_LA = else GST_PARSE_SRC = gstparse.c -GST_PARSE_H = gstparse.h SUBDIRS_PARSE = parse GST_PARSE_LA = parse/libgstparse.la endif @@ -190,7 +188,7 @@ gst_headers = \ gstutils.h \ gstvalue.h \ gstregistry.h \ - $(GST_PARSE_H) \ + gstparse.h \ gstxml.h libgstreamer_@GST_MAJORMINOR@include_HEADERS = $(gst_headers) diff --git a/gst/gstparse.h b/gst/gstparse.h index 7deea1b180..b21d1de8fa 100644 --- a/gst/gstparse.h +++ b/gst/gstparse.h @@ -23,6 +23,8 @@ #ifndef __GST_PARSE_H__ #define __GST_PARSE_H__ +#include + #include G_BEGIN_DECLS diff --git a/gst/gstutils.c b/gst/gstutils.c index 74174e2c65..8f685b4a35 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -3047,6 +3047,7 @@ gst_bin_find_unconnected_pad (GstBin * bin, GstPadDirection direction) return pad; } +#ifndef GST_DISABLE_PARSE /** * gst_parse_bin_from_description: * @bin_description: command line describing the bin @@ -3107,3 +3108,4 @@ gst_parse_bin_from_description (const gchar * bin_description, return GST_ELEMENT (bin); } +#endif diff --git a/gst/gstutils.h b/gst/gstutils.h index f170d87806..7f445f7b29 100644 --- a/gst/gstutils.h +++ b/gst/gstutils.h @@ -25,6 +25,8 @@ #ifndef __GST_UTILS_H__ #define __GST_UTILS_H__ +#include + #include #include @@ -599,10 +601,18 @@ void gst_element_found_tags_for_pad (GstElement * element, void gst_element_found_tags (GstElement * element, GstTagList * list); +#ifndef GST_DISABLE_PARSE /* parse utility functions */ GstElement * gst_parse_bin_from_description (const gchar * bin_description, gboolean ghost_unconnected_pads, GError ** err); +#else /* GST_DISABLE_PARSE */ + +#if defined _GNUC_ && _GNUC_ >= 3 +#pragma GCC poison gst_parse_bin_from_description +#endif + +#endif G_END_DECLS -- 2.34.1