videometa: improve debug error reporting
This commit is contained in:
parent
6e4d7e466d
commit
59e99e827e
@ -119,8 +119,8 @@ static gboolean
|
|||||||
default_map (GstVideoMeta * meta, guint plane, GstMapInfo * info,
|
default_map (GstVideoMeta * meta, guint plane, GstMapInfo * info,
|
||||||
gpointer * data, gint * stride, GstMapFlags flags)
|
gpointer * data, gint * stride, GstMapFlags flags)
|
||||||
{
|
{
|
||||||
guint offset, idx, length;
|
guint idx, length;
|
||||||
gsize skip;
|
gsize offset, skip;
|
||||||
GstBuffer *buffer = meta->buffer;
|
GstBuffer *buffer = meta->buffer;
|
||||||
|
|
||||||
offset = meta->offset[plane];
|
offset = meta->offset[plane];
|
||||||
@ -141,12 +141,12 @@ default_map (GstVideoMeta * meta, guint plane, GstMapInfo * info,
|
|||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
no_memory:
|
no_memory:
|
||||||
{
|
{
|
||||||
GST_DEBUG ("no memory");
|
GST_DEBUG ("plane %u, no memory at offset %" G_GSIZE_FORMAT, plane, offset);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
cannot_map:
|
cannot_map:
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cannot map memory");
|
GST_DEBUG ("cannot map memory range %u-%u", idx, length);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user