diff options
author | Matthew Waters <matthew@centricular.com> | 2016-01-06 16:25:38 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2016-01-06 16:48:33 +1100 |
commit | 519280204c8aad010ce4bc531bb3d4b604d7bf98 (patch) | |
tree | a621e540db3ce5e3f250e9d6f72881eacda2cfd7 /ext/gl | |
parent | 37264a86e184b04c042d94170a526057284b6f9d (diff) | |
download | gstreamer-plugins-bad-519280204c8aad010ce4bc531bb3d4b604d7bf98.tar.gz |
glcolorconvert: implement usage of a buffer pool
Saves unnecessary glGenTextures and glDeleteTextures which may have a
non-trivial cost.
Diffstat (limited to 'ext/gl')
-rw-r--r-- | ext/gl/gstglcolorconvertelement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/gl/gstglcolorconvertelement.c b/ext/gl/gstglcolorconvertelement.c index 76a70f2e4..bd4fbebcd 100644 --- a/ext/gl/gstglcolorconvertelement.c +++ b/ext/gl/gstglcolorconvertelement.c @@ -191,6 +191,9 @@ gst_gl_color_convert_element_decide_allocation (GstBaseTransform * trans, convert->out_caps)) return FALSE; + if (!gst_gl_color_convert_decide_allocation (convert->convert, query)) + return FALSE; + return TRUE; } |