glcontext: DRM context is not being finalized if no display is connected
Submitted by Eugen Klim
Created attachment 373948
a simple python script which consequently creates pipelines, logs with and without the issue
I use gl elements from gstreamer 1.14 with this  patch on a headless system (linux 4.17, mesa 18.2).
It initializes and runs fine, but when I try to destroy the pipeline and build a new one, old context persists, and newly created context is being created as a software (llvmpipe) context (it seems due to the previous one is not deleted).
Under wayland and X11 context is being finalized and (re)created fine. I've attached a simple python script to test the issue, error log (from a headless run) and a normal log (from under wayland)
Attachment 373948, "a simple python script which consequently creates pipelines, logs with and without the issue":