mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
eglglessink: Don't signal the GCond too often
This commit is contained in:
parent
82dc2a3544
commit
406630a294
1 changed files with 5 additions and 7 deletions
|
@ -1093,19 +1093,17 @@ render_thread_func (GstEglGlesSink * eglglessink)
|
|||
}
|
||||
|
||||
eglglessink->last_flow = gst_eglglessink_render_and_display (eglglessink, buf);
|
||||
if (buf) {
|
||||
g_mutex_lock (eglglessink->render_lock);
|
||||
g_cond_broadcast (eglglessink->render_cond);
|
||||
g_mutex_unlock (eglglessink->render_lock);
|
||||
}
|
||||
item->destroy (item);
|
||||
if (eglglessink->last_flow != GST_FLOW_OK)
|
||||
break;
|
||||
GST_DEBUG_OBJECT (eglglessink, "Successfully handled object");
|
||||
}
|
||||
|
||||
g_mutex_lock (eglglessink->render_lock);
|
||||
g_cond_broadcast (eglglessink->render_cond);
|
||||
g_mutex_unlock (eglglessink->render_lock);
|
||||
|
||||
if (eglglessink->last_flow == GST_FLOW_OK)
|
||||
eglglessink->last_flow = GST_FLOW_WRONG_STATE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue