mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
ebml: Fix push-based behaviour
The 'peek' method was completely wrong (!?)
This commit is contained in:
parent
a7790efd04
commit
4b5f8ff8d1
1 changed files with 7 additions and 3 deletions
|
@ -1547,11 +1547,15 @@ gst_matroska_read_common_parse_metadata (GstMatroskaReadCommon * common,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const guint8 *
|
static GstFlowReturn
|
||||||
gst_matroska_read_common_peek_adapter (GstMatroskaReadCommon * common, guint
|
gst_matroska_read_common_peek_adapter (GstMatroskaReadCommon * common, guint
|
||||||
peek)
|
peek, const guint8 ** data)
|
||||||
{
|
{
|
||||||
return gst_adapter_peek (common->adapter, peek);
|
*data = gst_adapter_peek (common->adapter, peek);
|
||||||
|
if (*data == NULL)
|
||||||
|
return GST_FLOW_ERROR;
|
||||||
|
|
||||||
|
return GST_FLOW_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue