From 15687f381b83196ea7b723d0d050e68cd28808e8 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 Nov 2011 13:04:12 +0100 Subject: [PATCH] xvimagebufferpool: Use the default ::free_buffer() implementation Which does exactly the same thing --- sys/xvimage/xvimagepool.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/xvimage/xvimagepool.c b/sys/xvimage/xvimagepool.c index 8cd632a..a2b9cb7 100644 --- a/sys/xvimage/xvimagepool.c +++ b/sys/xvimage/xvimagepool.c @@ -650,12 +650,6 @@ no_buffer: } } -static void -xvimage_buffer_pool_free (GstBufferPool * pool, GstBuffer * buffer) -{ - gst_buffer_unref (buffer); -} - GstBufferPool * gst_xvimage_buffer_pool_new (GstXvImageSink * xvimagesink) { @@ -684,7 +678,6 @@ gst_xvimage_buffer_pool_class_init (GstXvImageBufferPoolClass * klass) gstbufferpool_class->get_options = xvimage_buffer_pool_get_options; gstbufferpool_class->set_config = xvimage_buffer_pool_set_config; gstbufferpool_class->alloc_buffer = xvimage_buffer_pool_alloc; - gstbufferpool_class->free_buffer = xvimage_buffer_pool_free; } static void -- 2.7.4