From 9c8d323d07b752f6e328ac4273b7d275468a600f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Nov 2011 12:45:41 +0100 Subject: [PATCH] padd return value from _mini_object_replace() --- gst/gstbuffer.h | 8 +++++--- gst/gstevent.h | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index 0bf7d8a..c6b95a5 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -462,15 +462,17 @@ void gst_buffer_copy_into (GstBuffer *dest, GstBuffer *src * buffer is unreffed, the new is reffed). * * Either @nbuf or the #GstBuffer pointed to by @obuf may be NULL. + * + * Returns: TRUE when @obuf was different from @nbuf. */ #ifdef _FOOL_GTK_DOC_ -G_INLINE_FUNC void gst_buffer_replace (GstBuffer **obuf, GstBuffer *nbuf); +G_INLINE_FUNC gboolean gst_buffer_replace (GstBuffer **obuf, GstBuffer *nbuf); #endif -static inline void +static inline gboolean gst_buffer_replace (GstBuffer **obuf, GstBuffer *nbuf) { - gst_mini_object_replace ((GstMiniObject **) obuf, (GstMiniObject *) nbuf); + return gst_mini_object_replace ((GstMiniObject **) obuf, (GstMiniObject *) nbuf); } /* creating a region */ diff --git a/gst/gstevent.h b/gst/gstevent.h index 1a06a98..5482f13 100644 --- a/gst/gstevent.h +++ b/gst/gstevent.h @@ -282,13 +282,13 @@ extern GType _gst_event_type; * Returns: TRUE if @new_event was different from @old_event */ #ifdef _FOOL_GTK_DOC_ -G_INLINE_FUNC void gst_event_replace (GstEvent **old_event, GstEvent *new_event); +G_INLINE_FUNC gboolean gst_event_replace (GstEvent **old_event, GstEvent *new_event); #endif -static inline void +static inline gboolean gst_event_replace (GstEvent **old_event, GstEvent *new_event) { - gst_mini_object_replace ((GstMiniObject **) old_event, (GstMiniObject *) new_event); + return gst_mini_object_replace ((GstMiniObject **) old_event, (GstMiniObject *) new_event); } /** -- 2.7.4