avviddec: Make sure to use a buffer pool with the correct width/height configured...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 30 Nov 2015 17:01:41 +0000 (19:01 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Dec 2015 10:34:27 +0000 (12:34 +0200)
commit5df8cc5e381ac55e2171a281e79d0d55dec5abc0
tree0a322a4c8df5ddb56f7dc71d5d75395bf1a5df03
parent839a72f92ca23de39d31aa36839f85a9fb7d6356
avviddec: Make sure to use a buffer pool with the correct width/height configured on it for pushing buffers downstream

If downstream does not provide a (usable) pool, we would use our internal
pool. But the internal pool might be configured with a different width/height
because of padding, which then will cause problems if we push buffers from it
directly downstream.
Instead create a new pool if the width/height is different.

This prevents crashes with vaapisink and d3dvideosink for example.

Based on the debugging results and discussions with
Nicolas Dufresne <nicolas.dufresne@collabora.com>

https://bugzilla.gnome.org/show_bug.cgi?id=758344
ext/libav/gstavviddec.c