I see. I am not sure but gstreamer may have some functionality to run asynchronous callback functions. Other than that you could try running that function in another thread, or perhaps using the asyncio library.
I see. I am not sure but gstreamer may have some functionality to run asynchronous callback functions. Other than that you could try running that function in another thread, or perhaps using the asyncio library.