glbasememory: Don't change maxsize at run-time
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 4 Mar 2016 00:45:43 +0000 (19:45 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 4 Mar 2016 00:47:26 +0000 (19:47 -0500)
commit140815ff934de45f0476138e30a87a54e3f7f686
treeb0e1b4dc2e7a3056b5853051c98fe7b0b3eed886
parent7981c1cb8608049ac7e78a6c3cb00b62dd7289e0
glbasememory: Don't change maxsize at run-time

Maxsize is initialized once and should never change. Allocating data
should have no impact on the selected max size for this memory. This
causing memory map failure as the maxsize would become smaller then
size. This happened when using direct rendering in avviddec on GL that
does not support PBO transfer.

https://bugzilla.gnome.org/show_bug.cgi?id=763045
gst-libs/gst/gl/gstglbasememory.c