mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
videometa: improve debug error reporting
This commit is contained in:
parent
6e4d7e466d
commit
59e99e827e
1 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue