Skip to content
  • Thibault Saunier's avatar
    gl: basefilter: Ensure we have a context before running allocation query · 991e0aaf
    Thibault Saunier authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    Even in the case where we are not in passthrough but the subclasses are
    going to run the allocation query, we need to ensure that we have a
    GLContext ready to be used. Otherwise we might end up with assertions
    with `gloverlaycompositor` like:
    
    ```
     #0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140285688829504) at ./nptl/pthread_kill.c:44
     #1  __pthread_kill_internal (signo=6, threadid=140285688829504) at ./nptl/pthread_kill.c:78
     #2  __GI___pthread_kill (threadid=140285688829504, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
     #3  0x00007f985ed88476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
     #4  0x00007f985ed6e7f3 in __GI_abort () at ./stdlib/abort.c:79
     #5  0x00007f985faedb57 in g_assertion_message (domain=<optimized out>, file=<optimized out>, line=<optimized out>, func=0x7f9856251b80 <__func__.5> "gst_gl_buffer_pool_set_config", message=<optimized out>) at ../../../glib/gtestutils.c:3253
     #6...
    991e0aaf