mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
ringbuffer: improve debugging
This commit is contained in:
parent
2304ff9095
commit
f9404c0b27
1 changed files with 3 additions and 2 deletions
|
@ -793,7 +793,7 @@ gst_ring_buffer_acquire (GstRingBuffer * buf, GstRingBufferSpec * spec)
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_RING_BUFFER (buf), FALSE);
|
g_return_val_if_fail (GST_IS_RING_BUFFER (buf), FALSE);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (buf, "acquiring device");
|
GST_DEBUG_OBJECT (buf, "acquiring device %p", buf);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (buf);
|
GST_OBJECT_LOCK (buf);
|
||||||
if (G_UNLIKELY (!buf->open))
|
if (G_UNLIKELY (!buf->open))
|
||||||
|
@ -864,7 +864,8 @@ acquire_failed:
|
||||||
invalid_bps:
|
invalid_bps:
|
||||||
{
|
{
|
||||||
g_warning
|
g_warning
|
||||||
("invalid bytes_per_sample from acquire ringbuffer, fix the element");
|
("invalid bytes_per_sample from acquire ringbuffer %p, fix the element",
|
||||||
|
buf);
|
||||||
buf->acquired = FALSE;
|
buf->acquired = FALSE;
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue