GNOME Bugzilla – Bug 746701
glimagesink: cannot set window handle to 0
Last modified: 2018-11-03 11:36:16 UTC
When I set glimagesink's window-handle to 0, I get that critical: ** (lt-scout-client-gtk:25380): CRITICAL **: gst_gl_window_set_window_handle: assertion 'handle != 0' failed But gst_video_overlay_set_window_handle()'s doc says this: "Passing 0 as the handle will tell the overlay to stop using that window and create an internal one." In my case I'm on android, since it cannot create a new window there, I guess the sink has 2 options: drop buffers or block the streaming thread (equivalent of PAUSED, right?) until it get a new window handle. On android when switching app the SurfaceView is destroyed so in that case it sets the window-handle to 0 and I think it makes sense to pause the stream.
The doc seems correct as you can pass 0 to ximagesink and xvimagesink at least. Have you try to just remove the check "g_return_if_fail (handle != 0);" ? I am saying that because looking at gstglwindow_x11.c and gstglwindow_android_egl.c it looks like it should work.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/175.