padd return value from _mini_object_replace()

This commit is contained in:
Wim Taymans 2011-11-22 12:45:41 +01:00
parent 6ea74a0572
commit 9c8d323d07
2 changed files with 8 additions and 6 deletions

View file

@ -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 */

View file

@ -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);
}
/**