matroskaparse: don't error out if there's not enough data in the adapter
authorTim-Philipp Müller <tim@centricular.com>
Sat, 28 Jun 2014 16:37:23 +0000 (17:37 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 28 Jun 2014 16:39:36 +0000 (17:39 +0100)
commit155a3fec9334a5a2f9918aff491b5926143cba71
tree2d434b7df7151305ac9260cbf8784d451701af14
parentc0f5644b8072a39e39158c06c8a811cdcee0d541
matroskaparse: don't error out if there's not enough data in the adapter

gst_matroska_parse_take() would return FLOW_ERROR instead of
FLOW_EOS in case there's less data in the adapter than requested,
because buffer is NULL in that case which triggers the error
code path. This made the unit test fail (occasionally at least,
because of a bug in the unit test there's a race and it would
happen only sporadically).
gst/matroska/matroska-parse.c