mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
eglglessink: Return the last_flow immediately if it wasn't GST_FLOW_OK
This commit is contained in:
parent
fa6cddcf45
commit
6140bc7f8c
1 changed files with 6 additions and 1 deletions
|
@ -1666,7 +1666,12 @@ queue_item_destroy (GstDataQueueItem * item)
|
|||
static GstFlowReturn
|
||||
gst_eglglessink_queue_object (GstEglGlesSink * eglglessink, GstMiniObject * obj)
|
||||
{
|
||||
GstDataQueueItem *item = g_slice_new0 (GstDataQueueItem);
|
||||
GstDataQueueItem *item;
|
||||
|
||||
if (eglglessink->last_flow != GST_FLOW_OK)
|
||||
return eglglessink->last_flow;
|
||||
|
||||
item = g_slice_new0 (GstDataQueueItem);
|
||||
|
||||
item->object = obj ? gst_mini_object_ref (obj) : NULL;
|
||||
item->size = 0;
|
||||
|
|
Loading…
Reference in a new issue