gldownload: Micro-optimisation. Don't check output caps on every buffer
authorJan Schmidt <jan@centricular.com>
Mon, 21 Aug 2017 13:49:02 +0000 (06:49 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:29 +0000 (19:32 +0000)
commit632015a9e8ad978e276823cabd024c40965bd723
tree1bf09338f94445a5230ad830311b108efcfc5dc1
parentb6e65172fe26f465aa247ed41228aa73cd069682
gldownload: Micro-optimisation. Don't check output caps on every buffer

The output caps will only change on a set_caps() call, so check if
they contain the SystemMemory feature then and save some
per-buffer CPU.
ext/gl/gstgldownloadelement.c
ext/gl/gstgldownloadelement.h