mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
adapter: handle map failure
This commit is contained in:
parent
1702623b20
commit
bac5ba632e
1 changed files with 3 additions and 1 deletions
|
@ -1044,7 +1044,9 @@ gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
|
||||||
gst_buffer_unmap (buf, &info);
|
gst_buffer_unmap (buf, &info);
|
||||||
buf = g->data;
|
buf = g->data;
|
||||||
|
|
||||||
gst_buffer_map (buf, &info, GST_MAP_READ);
|
if (!gst_buffer_map (buf, &info, GST_MAP_READ))
|
||||||
|
return -1;
|
||||||
|
|
||||||
bsize = info.size;
|
bsize = info.size;
|
||||||
bdata = info.data;
|
bdata = info.data;
|
||||||
} while (TRUE);
|
} while (TRUE);
|
||||||
|
|
Loading…
Reference in a new issue