mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
eglglessink: If pushing an item on the queue fails, free it
Otherwise we're going to leak the item.
This commit is contained in:
parent
0ec92a3f73
commit
8786262fff
1 changed files with 1 additions and 0 deletions
|
@ -1699,6 +1699,7 @@ gst_eglglessink_queue_buffer (GstEglGlesSink * eglglessink, GstBuffer * buf)
|
||||||
if (buf)
|
if (buf)
|
||||||
g_mutex_lock (&eglglessink->render_lock);
|
g_mutex_lock (&eglglessink->render_lock);
|
||||||
if (!gst_data_queue_push (eglglessink->queue, item)) {
|
if (!gst_data_queue_push (eglglessink->queue, item)) {
|
||||||
|
item->destroy (item);
|
||||||
g_mutex_unlock (&eglglessink->render_lock);
|
g_mutex_unlock (&eglglessink->render_lock);
|
||||||
GST_DEBUG_OBJECT (eglglessink, "Flushing");
|
GST_DEBUG_OBJECT (eglglessink, "Flushing");
|
||||||
return GST_FLOW_FLUSHING;
|
return GST_FLOW_FLUSHING;
|
||||||
|
|
Loading…
Reference in a new issue