glimagesink: cannot set window handle to 0
Submitted by Xavier Claessens
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.