mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 01:15:39 +00:00
queue: Don't generate GST_FLOW_ERROR without logging
At least log a message to the debug log when generating a GST_FLOW_ERROR, to make it possible to find where it came from.
This commit is contained in:
parent
0e621fec3f
commit
1543285fd1
1 changed files with 4 additions and 2 deletions
|
@ -1004,8 +1004,10 @@ gst_queue_handle_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret == FALSE)
|
if (ret == FALSE) {
|
||||||
|
GST_ERROR_OBJECT (queue, "Failed to push event");
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
|
}
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
@ -1452,7 +1454,7 @@ next:
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
no_item:
|
no_item:
|
||||||
{
|
{
|
||||||
GST_CAT_LOG_OBJECT (queue_dataflow, queue,
|
GST_CAT_ERROR_OBJECT (queue_dataflow, queue,
|
||||||
"exit because we have no item in the queue");
|
"exit because we have no item in the queue");
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue