bufferpool: Add missing error checking to default_alloc_buffer()
authorMohammed Sameer <msameer@foolab.org>
Wed, 30 Jul 2014 12:46:22 +0000 (15:46 +0300)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Wed, 30 Jul 2014 13:02:20 +0000 (09:02 -0400)
commit59749833bb702d59d7a6c0c6935f388dd602b2f2
treea548fa1910620fdfebc5b68781aa6e9ddde67b34
parent463ccd96eb07fc1515ebbac3f3cd13a19c91f0c8
bufferpool: Add missing error checking to default_alloc_buffer()

default_alloc_buffer() calls gst_buffer_new_allocate() but does not check for
failed allocation.

This patch makes default_alloc_buffer() return an error (GST_FLOW_ERROR) if
buffer allocation fails.

https://bugzilla.gnome.org/show_bug.cgi?id=733974
gst/gstbufferpool.c