qmlglsink crashes when it goes in NULL state
I'm using gstreamer 1.16.2. The plugin, with gst-omx in a raspberry, crashes when goes in NULL state. The issue also happens with the official example (tests/examples/qt/qmlsink). When it goes in NULL state, gst_omx_video_dec_shutdown waits for 5 seconds the change of the state of egl_render to StateLoaded but it timeouts and an error appears in the log. The reason is that the plugin doesn't consume and release the buffer while gst-omx waits for because it seems locked. After the timeout, the plugin attempts to use the buffer that it has already been unreferred by gst-omx and the application crashes. I wrote some lines of code that avoid the segmentation fault but it isn't the right solution. However, in the Qt documentation (https://doc.qt.io/qt-5/qtquick-scenegraph-openglunderqml-example.html), they suggest to have two different object, a QuickItem and a Renderer. Could be this the source of the issue?