mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
padd return value from _mini_object_replace()
This commit is contained in:
parent
6ea74a0572
commit
9c8d323d07
2 changed files with 8 additions and 6 deletions
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue