mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
matroska: do not return GST_FLOW_OK if we did not get a buffer
Coverity 1139714 (which will likely come back in another guise, as the _read_init call can have a failing _map)
This commit is contained in:
parent
f5a9f5e221
commit
3915884017
1 changed files with 2 additions and 0 deletions
|
@ -2282,6 +2282,8 @@ gst_matroska_parse_take (GstMatroskaParse * parse, guint64 bytes,
|
|||
gst_ebml_read_init (ebml, GST_ELEMENT_CAST (parse), buffer,
|
||||
parse->common.offset);
|
||||
parse->common.offset += bytes;
|
||||
} else {
|
||||
ret = GST_FLOW_ERROR;
|
||||
}
|
||||
exit:
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue