compositor: Only map the frame from a buffer if it will be used
authorNirbheek Chauhan <nirbheek@centricular.com>
Sat, 18 Apr 2015 09:40:00 +0000 (15:10 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 1 May 2015 10:27:55 +0000 (11:27 +0100)
commit070777498f094ad24846ed7c2c906176de5cdba7
tree608e8dd50bca9104bf2b85832c676eeec7ed218e
parent1817025ba0c6556423a0206c667c7ed64f0a730d
compositor: Only map the frame from a buffer if it will be used

It's a waste of resources to map it if it won't be converted
or used at all. Since we moved the frame mapping down, we need
to use the GST_VIDEO_INFO accessor macros now in the code above
that instead of the GST_VIDEO_FRAME accessor macros.

https://bugzilla.gnome.org/show_bug.cgi?id=746147
gst/compositor/compositor.c