glbasefilter: only call gl_{stop,start} if the context changed
authorMatthew Waters <matthew@centricular.com>
Mon, 17 Aug 2015 16:35:58 +0000 (18:35 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:08 +0000 (19:32 +0000)
commitd45e0f807f4be33dac42be65f304056821ae0ca6
treeb8ada6afa5c7c52363948462083806f3f00674dd
parentedd3c007ea9613b48cb37955abf8f9bd21cdd7a7
glbasefilter: only call gl_{stop,start} if the context changed

Removes the redundant GL object creation/deletion on every
decide_allocation call which is being called for every caps change.

Thus reduces the required GL state changes on reconfigure events
which are being sent by glimagesink/xvimagesink
gst-libs/gst/gl/gstglbasefilter.c