diff options
Diffstat (limited to 'gst/gstbuffer.c')
-rw-r--r-- | gst/gstbuffer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index a625345af..46b53abeb 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -572,7 +572,7 @@ gst_buffer_create_sub (GstBuffer * buffer, guint offset, guint size) gboolean complete; g_return_val_if_fail (buffer != NULL, NULL); - g_return_val_if_fail (buffer->mini_object.refcount > 0, NULL); + g_return_val_if_fail (buffer->mini_object.refcount, NULL); g_return_val_if_fail (buffer->size >= offset + size, NULL); /* find real parent */ @@ -652,8 +652,8 @@ gboolean gst_buffer_is_span_fast (GstBuffer * buf1, GstBuffer * buf2) { g_return_val_if_fail (buf1 != NULL && buf2 != NULL, FALSE); - g_return_val_if_fail (buf1->mini_object.refcount > 0, FALSE); - g_return_val_if_fail (buf2->mini_object.refcount > 0, FALSE); + g_return_val_if_fail (buf1->mini_object.refcount, FALSE); + g_return_val_if_fail (buf2->mini_object.refcount, FALSE); /* it's only fast if we have subbuffers of the same parent */ return (GST_IS_SUBBUFFER (buf1) && @@ -690,9 +690,9 @@ gst_buffer_span (GstBuffer * buf1, guint32 offset, GstBuffer * buf2, GstBuffer *newbuf; g_return_val_if_fail (buf1 != NULL && buf2 != NULL, NULL); - g_return_val_if_fail (buf1->mini_object.refcount > 0, NULL); - g_return_val_if_fail (buf2->mini_object.refcount > 0, NULL); - g_return_val_if_fail (len > 0, NULL); + g_return_val_if_fail (buf1->mini_object.refcount, NULL); + g_return_val_if_fail (buf2->mini_object.refcount, NULL); + g_return_val_if_fail (len, NULL); g_return_val_if_fail (len <= buf1->size + buf2->size - offset, NULL); /* if the two buffers have the same parent and are adjacent */ |