diff --git a/gst/gstelement.c b/gst/gstelement.c index 585b631880..71cab4c445 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -1207,7 +1207,15 @@ gst_element_class_add_pad_template (GstElementClass * klass, * This function is for use in _base_init functions only. * * The @details are copied. + * + * Deprecated: Use gst_element_class_set_details_simple() instead. */ +#ifndef GST_REMOVE_DEPRECATED +#ifdef GST_DISABLE_DEPRECATED +void +gst_element_class_set_details (GstElementClass * klass, + const GstElementDetails * details); +#endif void gst_element_class_set_details (GstElementClass * klass, const GstElementDetails * details) @@ -1217,6 +1225,7 @@ gst_element_class_set_details (GstElementClass * klass, __gst_element_details_copy (&klass->details, details); } +#endif /** * gst_element_class_set_details_simple: diff --git a/gst/gstelement.h b/gst/gstelement.h index 0b0dd0c506..81598dcb1f 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -663,7 +663,9 @@ struct _GstElementClass void gst_element_class_add_pad_template (GstElementClass *klass, GstPadTemplate *templ); GstPadTemplate* gst_element_class_get_pad_template (GstElementClass *element_class, const gchar *name); GList* gst_element_class_get_pad_template_list (GstElementClass *element_class); +#ifndef GST_DISABLE_DEPRECATED void gst_element_class_set_details (GstElementClass *klass, const GstElementDetails *details); +#endif void gst_element_class_set_details_simple (GstElementClass *klass, const gchar *longname, const gchar *classification,