mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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).
|
* buffer is unreffed, the new is reffed).
|
||||||
*
|
*
|
||||||
* Either @nbuf or the #GstBuffer pointed to by @obuf may be NULL.
|
* Either @nbuf or the #GstBuffer pointed to by @obuf may be NULL.
|
||||||
|
*
|
||||||
|
* Returns: TRUE when @obuf was different from @nbuf.
|
||||||
*/
|
*/
|
||||||
#ifdef _FOOL_GTK_DOC_
|
#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
|
#endif
|
||||||
|
|
||||||
static inline void
|
static inline gboolean
|
||||||
gst_buffer_replace (GstBuffer **obuf, GstBuffer *nbuf)
|
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 */
|
/* creating a region */
|
||||||
|
|
|
@ -282,13 +282,13 @@ extern GType _gst_event_type;
|
||||||
* Returns: TRUE if @new_event was different from @old_event
|
* Returns: TRUE if @new_event was different from @old_event
|
||||||
*/
|
*/
|
||||||
#ifdef _FOOL_GTK_DOC_
|
#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
|
#endif
|
||||||
|
|
||||||
static inline void
|
static inline gboolean
|
||||||
gst_event_replace (GstEvent **old_event, GstEvent *new_event)
|
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