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);
|
eglglessink->last_flow = gst_eglglessink_render_and_display (eglglessink, buf);
|
||||||
g_mutex_lock (eglglessink->render_lock);
|
if (buf) {
|
||||||
g_cond_broadcast (eglglessink->render_cond);
|
g_mutex_lock (eglglessink->render_lock);
|
||||||
g_mutex_unlock (eglglessink->render_lock);
|
g_cond_broadcast (eglglessink->render_cond);
|
||||||
|
g_mutex_unlock (eglglessink->render_lock);
|
||||||
|
}
|
||||||
item->destroy (item);
|
item->destroy (item);
|
||||||
if (eglglessink->last_flow != GST_FLOW_OK)
|
if (eglglessink->last_flow != GST_FLOW_OK)
|
||||||
break;
|
break;
|
||||||
GST_DEBUG_OBJECT (eglglessink, "Successfully handled object");
|
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)
|
if (eglglessink->last_flow == GST_FLOW_OK)
|
||||||
eglglessink->last_flow = GST_FLOW_WRONG_STATE;
|
eglglessink->last_flow = GST_FLOW_WRONG_STATE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue