ebml: small correction to previous commit

Signal a short read with UNEXPECTED, exactly like the peek_bytes function.
This commit is contained in:
René Stadler 2011-10-21 10:01:43 +02:00
parent 4b5f8ff8d1
commit 5baca05ec3

View file

@ -1553,7 +1553,7 @@ gst_matroska_read_common_peek_adapter (GstMatroskaReadCommon * common, guint
{
*data = gst_adapter_peek (common->adapter, peek);
if (*data == NULL)
return GST_FLOW_ERROR;
return GST_FLOW_UNEXPECTED;
return GST_FLOW_OK;
}