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)
commit1c60de8ad73b134df44fc30b45fdee87e28ccacc
tree518b5b7301f3236d24cfb9509b54cb8fc1e80502
parentcc2de817aee6442d750d5a1fdb62109e04bbe7cf
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