From 75ec0368958d07e3b5ae97d3c7404187bee65334 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 17 May 2003 00:42:57 +0000 Subject: [PATCH] ref pool before creating buffer that's using it Original commit message from CVS: ref pool before creating buffer that's using it --- gst/gstbuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index e8b04b1..c5594fc 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -250,12 +250,13 @@ gst_buffer_new_from_pool (GstBufferPool *pool, g_return_val_if_fail (pool != NULL, NULL); + gst_data_ref (GST_DATA (pool)); + buffer = pool->buffer_new (pool, offset, size, pool->user_data); if (!buffer) return NULL; GST_BUFFER_BUFFERPOOL (buffer) = pool; - gst_data_ref (GST_DATA (pool)); /* override the buffer refcount functions with those from the pool (if any) */ if (pool->buffer_free) -- 2.7.4