I’m developing a video monitoring program using Gtk4 and GStreamer. I use GtkPaintable to update the texture to GtkPicture.
When the program starts, the GdkFrameClock refreshes normally, but after a while, the GdkFrameClock stops registering the idle function to refresh.
Debugging reveals that the gtk_widget_queue_draw
function is called normally, but the GTK rendering function is not called correctly.
I suspect that the cause of this bug is the timeout and idle functions added to the default context in the GStreamer plugin and the program. These functions are called internally by the GStreamer plugin, so I can’t modify them.