videodecoder: return NULL from _allocate_output_buffer() if alloc fails
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 17 Oct 2012 09:55:01 +0000 (10:55 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 17 Oct 2012 09:55:01 +0000 (10:55 +0100)
commitefff57d49746b37100f5137ed55fccd6399774e4
treeb000cf3504046559a2c26d55a6c2bc6595d92cbb
parent4834e11da071a9cb32a45705bc80aaf5630ae7d3
videodecoder: return NULL from _allocate_output_buffer() if alloc fails

.. instead of garbage pointer. Also log failure in debug log.
Should've returned the flow return like _allocate_output_frame().

https://bugzilla.gnome.org/show_bug.cgi?id=683098
gst-libs/gst/video/gstvideodecoder.c