mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
eglglessink: Allow setting a NULL handle
This commit is contained in:
parent
fc0dc0055a
commit
f058b5d78b
1 changed files with 0 additions and 5 deletions
|
@ -1799,11 +1799,6 @@ gst_eglglessink_set_window_handle (GstXOverlay * overlay, guintptr id)
|
||||||
g_return_if_fail (GST_IS_EGLGLESSINK (eglglessink));
|
g_return_if_fail (GST_IS_EGLGLESSINK (eglglessink));
|
||||||
GST_DEBUG_OBJECT (eglglessink, "We got a window handle!");
|
GST_DEBUG_OBJECT (eglglessink, "We got a window handle!");
|
||||||
|
|
||||||
if (!id) {
|
|
||||||
GST_ERROR_OBJECT (eglglessink, "Window handle is invalid");
|
|
||||||
goto HANDLE_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* OK, we have a new window */
|
/* OK, we have a new window */
|
||||||
g_mutex_lock (eglglessink->flow_lock);
|
g_mutex_lock (eglglessink->flow_lock);
|
||||||
eglglessink->eglglesctx->window = (EGLNativeWindowType) id;
|
eglglessink->eglglesctx->window = (EGLNativeWindowType) id;
|
||||||
|
|
Loading…
Reference in a new issue