From 3cba95ca2a00987d3b5bbeef522f1c1a399d212b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 26 Aug 2016 12:55:04 +0100 Subject: [PATCH] element: rename gst_element_message_new_details() to gst_make_element_message_details() Fixes g-i warning "Gst: Constructor return type mismatch symbol='gst_element_message_new_details' constructed='Gst.Element' return='Gst.Structure'". This is a newly-added function in git that has not been in a stable release yet, so it's fine to rename it. It's also only used indirectly via macros. --- docs/gst/gstreamer-sections.txt | 2 +- gst/gstelement.c | 2 +- gst/gstelement.h | 4 ++-- win32/common/libgstreamer.def | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 24cea45f2c..cefddf40be 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -904,7 +904,7 @@ gst_element_change_state gst_element_message_full gst_element_message_full_with_details -gst_element_message_details_new +gst_make_element_message_details gst_element_post_message diff --git a/gst/gstelement.c b/gst/gstelement.c index 020f235124..dc76fac29b 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -3479,7 +3479,7 @@ _priv_gst_element_cleanup (void) } GstStructure * -gst_element_message_details_new (const char *name, ...) +gst_make_element_message_details (const char *name, ...) { GstStructure *structure; va_list varargs; diff --git a/gst/gstelement.h b/gst/gstelement.h index 3f9cd10aa7..41af93189c 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -399,8 +399,8 @@ typedef enum */ #define GST_ELEMENT_START_TIME(elem) (GST_ELEMENT_CAST(elem)->start_time) -GstStructure *gst_element_message_details_new(const char *name, ...); -#define GST_ELEMENT_MESSAGE_MAKE_DETAILS(args) gst_element_message_details_new args +GstStructure *gst_make_element_message_details (const char *name, ...); +#define GST_ELEMENT_MESSAGE_MAKE_DETAILS(args) gst_make_element_message_details args /** * GST_ELEMENT_ERROR_WITH_DETAILS: diff --git a/win32/common/libgstreamer.def b/win32/common/libgstreamer.def index e4466f9b3d..9313d92f12 100644 --- a/win32/common/libgstreamer.def +++ b/win32/common/libgstreamer.def @@ -540,7 +540,6 @@ EXPORTS gst_element_link_pads_full gst_element_lost_state gst_element_make_from_uri - gst_element_message_details_new gst_element_message_full gst_element_message_full_with_details gst_element_no_more_pads @@ -690,6 +689,7 @@ EXPORTS gst_library_error_get_type gst_library_error_quark gst_lock_flags_get_type + gst_make_element_message_details gst_map_flags_get_type gst_memory_alignment DATA gst_memory_copy