mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 22:05:58 +00:00
eglglessink: Avoid reiniting EGL after the first time
This commit is contained in:
parent
75fe18200a
commit
f707961183
1 changed files with 5 additions and 4 deletions
|
@ -855,10 +855,11 @@ gst_eglglessink_start (GstBaseSink * sink)
|
|||
{
|
||||
GstEglGlesSink *eglglessink = GST_EGLGLESSINK (sink);
|
||||
|
||||
if (!egl_init (eglglessink)) {
|
||||
GST_ERROR_OBJECT (eglglessink, "EGL uninitialized. Bailing out");
|
||||
goto HANDLE_ERROR;
|
||||
}
|
||||
if (!eglglessink->egl_started)
|
||||
if (!egl_init (eglglessink)) {
|
||||
GST_ERROR_OBJECT (eglglessink, "EGL uninitialized. Bailing out");
|
||||
goto HANDLE_ERROR;
|
||||
}
|
||||
|
||||
/* Ask for a window to render to */
|
||||
gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink));
|
||||
|
|
Loading…
Reference in a new issue