From 90b4dc48696481f31306e16e5ad9d5edfd0062a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 10 Mar 2011 17:48:26 +0000 Subject: [PATCH] utils: fix ABI break when compiling gstreamer with -DGST_DISABLE_DEPRECATED GST_DISABLE_DEPRECATED should only affect visibility of declarations in headers, not actually remove symbols. See GitDeveloperGuidelines and DeprecatingAPI pages in wiki. https://bugzilla.gnome.org/show_bug.cgi?id=402141 --- gst/gstutils.c | 14 ++++++++++++-- win32/common/libgstreamer.def | 2 ++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gst/gstutils.c b/gst/gstutils.c index f517d55..eeca9b2 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -1321,7 +1321,6 @@ gst_element_factory_can_accept_any_caps_in_direction (GstElementFactory * return FALSE; } -#ifndef GST_DISABLE_DEPRECATED /** * gst_element_factory_can_src_caps: * @factory: factory to query @@ -1333,6 +1332,11 @@ gst_element_factory_can_accept_any_caps_in_direction (GstElementFactory * * * Deprecated: use gst_element_factory_can_src_all_caps() instead. */ +#ifndef GST_REMOVE_DEPRECATED +#ifdef GST_DISABLE_DEPRECATED +gboolean gst_element_factory_can_src_caps (GstElementFactory * factory, + const GstCaps * caps); +#endif gboolean gst_element_factory_can_src_caps (GstElementFactory * factory, const GstCaps * caps) @@ -1340,6 +1344,7 @@ gst_element_factory_can_src_caps (GstElementFactory * factory, return gst_element_factory_can_accept_all_caps_in_direction (factory, caps, GST_PAD_SRC); } +#endif /* GST_REMOVE_DEPRECATED */ /** * gst_element_factory_can_sink_caps: @@ -1352,6 +1357,11 @@ gst_element_factory_can_src_caps (GstElementFactory * factory, * * Deprecated: use gst_element_factory_can_sink_all_caps() instead. */ +#ifndef GST_REMOVE_DEPRECATED +#ifdef GST_DISABLE_DEPRECATED +gboolean gst_element_factory_can_sink_caps (GstElementFactory * factory, + const GstCaps * caps); +#endif gboolean gst_element_factory_can_sink_caps (GstElementFactory * factory, const GstCaps * caps) @@ -1359,7 +1369,7 @@ gst_element_factory_can_sink_caps (GstElementFactory * factory, return gst_element_factory_can_accept_all_caps_in_direction (factory, caps, GST_PAD_SINK); } -#endif /* GST_DISABLE_DEPRECATED */ +#endif /* GST_REMOVE_DEPRECATED */ /** * gst_element_factory_can_sink_all_caps: diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def index 376fa83..a679ce5 100644 --- a/win32/common/libgstreamer.def +++ b/win32/common/libgstreamer.def @@ -303,8 +303,10 @@ EXPORTS gst_element_create_all_pads gst_element_factory_can_sink_all_caps gst_element_factory_can_sink_any_caps + gst_element_factory_can_sink_caps gst_element_factory_can_src_all_caps gst_element_factory_can_src_any_caps + gst_element_factory_can_src_caps gst_element_factory_create gst_element_factory_find gst_element_factory_get_author -- 2.7.4