summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2017-01-03 02:13:30 +1100
committerJan Schmidt <jan@centricular.com>2017-01-03 02:21:10 +1100
commit748687fc30001b3bca0218ae909ee31f75f24e00 (patch)
tree60b8562b752b9458bf1ac0d43da343ca361ae661 /plugins
parent246618125f419a8a6cbb8f5534b151623e46828c (diff)
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstqueue.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c
index c6d66ebf2..57c57591e 100644
--- a/plugins/elements/gstqueue.c
+++ b/plugins/elements/gstqueue.c
@@ -1004,8 +1004,10 @@ gst_queue_handle_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
}
break;
}
- if (ret == FALSE)
+ if (ret == FALSE) {
+ GST_ERROR_OBJECT (queue, "Failed to push event");
return GST_FLOW_ERROR;
+ }
return GST_FLOW_OK;
/* ERRORS */
@@ -1456,7 +1458,7 @@ next:
/* ERRORS */
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");
return GST_FLOW_ERROR;
}