ebml: Fix push-based behaviour

The 'peek' method was completely wrong (!?)
This commit is contained in:
Edward Hervey 2011-10-19 13:09:51 +02:00
parent a7790efd04
commit 4b5f8ff8d1

View file

@ -1547,11 +1547,15 @@ gst_matroska_read_common_parse_metadata (GstMatroskaReadCommon * common,
return ret;
}
static const guint8 *
static GstFlowReturn
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;
}
/*