Improve debug output by logging the offsets. Fixes bug #568678.

In create() also log the offsets and not only the
buffer size.
This commit is contained in:
Sebastian Dröge 2009-01-22 13:58:57 +01:00
parent 541cb2e914
commit e5ce299593

View file

@ -830,7 +830,8 @@ gst_file_src_create_read (GstFileSrc * src, guint64 offset, guint length,
return GST_FLOW_ERROR;
}
GST_LOG_OBJECT (src, "Reading %d bytes", length);
GST_LOG_OBJECT (src, "Reading %d bytes at offset 0x%" G_GINT64_MODIFIER "x",
length, offset);
ret = read (src->fd, GST_BUFFER_DATA (buf), length);
if (G_UNLIKELY (ret < 0))
goto could_not_read;