diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2014-05-23 17:01:53 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2014-05-24 15:38:53 -0400 |
commit | 45b322c2dbebf8a578219da7a6c0107a94606cb5 (patch) | |
tree | 926f78ece7c69ecb72a91619a0ab3b4326df3eb0 /sys | |
parent | 03ed348d95423f07d6954b7efea007a333346b55 (diff) | |
download | gstreamer-plugins-good-45b322c2dbebf8a578219da7a6c0107a94606cb5.tar.gz |
v4l2bufferpool: Improve debugging
No need to use obj->element, the pool now have a significant name. Also don't
warn if flushing.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2bufferpool.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 21de65c35..488f48fb6 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -1668,33 +1668,36 @@ done: /* ERRORS */ copy_failed: { - GST_ERROR_OBJECT (obj->element, "failed to copy buffer"); + GST_ERROR_OBJECT (pool, "failed to copy buffer"); return ret; } eos: { - GST_DEBUG_OBJECT (obj->element, "end of stream reached"); + GST_DEBUG_OBJECT (pool, "end of stream reached"); return GST_FLOW_EOS; } acquire_failed: { - GST_WARNING_OBJECT (obj->element, "failed to acquire a buffer: %s", - gst_flow_get_name (ret)); + if (ret == GST_FLOW_FLUSHING) + GST_DEBUG_OBJECT (pool, "flushing"); + else + GST_WARNING_OBJECT (pool, "failed to acquire a buffer: %s", + gst_flow_get_name (ret)); return ret; } prepare_failed: { - GST_ERROR_OBJECT (obj->element, "failed to prepare data"); + GST_ERROR_OBJECT (pool, "failed to prepare data"); return ret; } queue_failed: { - GST_ERROR_OBJECT (obj->element, "failed to queue buffer"); + GST_ERROR_OBJECT (pool, "failed to queue buffer"); return ret; } start_failed: { - GST_ERROR_OBJECT (obj->element, "failed to start streaming"); + GST_ERROR_OBJECT (pool, "failed to start streaming"); return GST_FLOW_ERROR; } } |