glcontext: DRM context is not being finalized if no display is connected
Submitted by Eugen Klim
Link to original bug (#797297)
Description
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 [1] 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)
[1] https://bugzilla.gnome.org/show_bug.cgi?id=794716
Attachment 373948, "a simple python script which consequently creates pipelines, logs with and without the issue":
bug.tar.gz
Version: 1.14.x