mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
eglglessink: Make sure to always reset the display region in start()
This commit is contained in:
parent
28fe3f7888
commit
87a028a0a4
1 changed files with 10 additions and 2 deletions
|
@ -1140,8 +1140,7 @@ render_thread_func (GstEglGlesSink * eglglessink)
|
|||
}
|
||||
}
|
||||
|
||||
if (!gst_eglglessink_context_make_current (eglglessink, FALSE))
|
||||
return FALSE;
|
||||
gst_eglglessink_context_make_current (eglglessink, FALSE);
|
||||
|
||||
if (eglglessink->eglglesctx.surface) {
|
||||
eglDestroySurface (eglglessink->eglglesctx.display,
|
||||
|
@ -1186,6 +1185,15 @@ gst_eglglessink_start (GstEglGlesSink * eglglessink)
|
|||
goto HANDLE_ERROR;
|
||||
}
|
||||
|
||||
GST_OBJECT_LOCK (eglglessink);
|
||||
/* Reset display region
|
||||
* XXX: Should probably keep old ones if set_render_rect()
|
||||
* has been called.
|
||||
*/
|
||||
eglglessink->display_region.w = 0;
|
||||
eglglessink->display_region.h = 0;
|
||||
GST_OBJECT_UNLOCK (eglglessink);
|
||||
|
||||
eglglessink->last_flow = GST_FLOW_OK;
|
||||
gst_data_queue_set_flushing (eglglessink->queue, FALSE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue