mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +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);
|
GstEglGlesSink *eglglessink = GST_EGLGLESSINK (sink);
|
||||||
|
|
||||||
if (!egl_init (eglglessink)) {
|
if (!eglglessink->egl_started)
|
||||||
GST_ERROR_OBJECT (eglglessink, "EGL uninitialized. Bailing out");
|
if (!egl_init (eglglessink)) {
|
||||||
goto HANDLE_ERROR;
|
GST_ERROR_OBJECT (eglglessink, "EGL uninitialized. Bailing out");
|
||||||
}
|
goto HANDLE_ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
/* Ask for a window to render to */
|
/* Ask for a window to render to */
|
||||||
gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink));
|
gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink));
|
||||||
|
|
Loading…
Reference in a new issue