From 3915884017aec592f3e88968c75a254e47585701 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 2 May 2014 11:28:01 +0100 Subject: [PATCH] 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) --- gst/matroska/matroska-parse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c index 9f92928..89f23d8 100644 --- a/gst/matroska/matroska-parse.c +++ b/gst/matroska/matroska-parse.c @@ -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; -- 2.7.4