xvimagesink: error out on buffer size sanity check failure.
authorDuncan Palmer <dpalmer@digisoft.tv>
Thu, 7 Jul 2016 12:27:15 +0000 (22:27 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 18 Jul 2016 13:15:10 +0000 (14:15 +0100)
commit4e83e894dfd2bf0e52e826dd42a93f0bed61ab4f
tree2d249f5bd74f13f6d7d0349b09c4235da6c03e06
parent9834782afa1e5eada76cda985f301562fae1d470
xvimagesink: error out on buffer size sanity check failure.

If sanity checks on the buffer size allocated by XvShmCreateImage() fail,
call on g_set_error(), rather than just logging a warning, as this
failure is fatal.

Add a sanity check on buffer size when the video format is RGB. This adds to
existing checks on various YUV pixel formats.

https://bugzilla.gnome.org/show_bug.cgi?id=767712
sys/xvimage/xvimageallocator.c
sys/xvimage/xvimageallocator.h
sys/xvimage/xvimagepool.c