mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-27 00:38:21 +00:00
ebml: small correction to previous commit
Signal a short read with UNEXPECTED, exactly like the peek_bytes function.
This commit is contained in:
parent
4b5f8ff8d1
commit
5baca05ec3
|
@ -1553,7 +1553,7 @@ gst_matroska_read_common_peek_adapter (GstMatroskaReadCommon * common, guint
|
||||||
{
|
{
|
||||||
*data = gst_adapter_peek (common->adapter, peek);
|
*data = gst_adapter_peek (common->adapter, peek);
|
||||||
if (*data == NULL)
|
if (*data == NULL)
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_UNEXPECTED;
|
||||||
|
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue