mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
omxvideodec: Check return value of gst_buffer_map()
CID 1214599
This commit is contained in:
parent
429b0e1e27
commit
c2e5dca5f0
1 changed files with 5 additions and 1 deletions
|
@ -432,7 +432,11 @@ gst_omx_video_dec_fill_buffer (GstOMXVideoDec * self,
|
|||
if (gst_buffer_get_size (outbuf) == inbuf->omx_buf->nFilledLen) {
|
||||
GstMapInfo map = GST_MAP_INFO_INIT;
|
||||
|
||||
gst_buffer_map (outbuf, &map, GST_MAP_WRITE);
|
||||
if (!gst_buffer_map (outbuf, &map, GST_MAP_WRITE)) {
|
||||
GST_ERROR_OBJECT (self, "Failed to map output buffer");
|
||||
goto done;
|
||||
}
|
||||
|
||||
memcpy (map.data,
|
||||
inbuf->omx_buf->pBuffer + inbuf->omx_buf->nOffset,
|
||||
inbuf->omx_buf->nFilledLen);
|
||||
|
|
Loading…
Reference in a new issue