baseparse: fix pull mode cache size comparison

This commit is contained in:
Mark Nauwelaerts 2009-12-18 13:30:07 +01:00 committed by Tim-Philipp Müller
parent be9c6045d0
commit 23e55f4d6b

View file

@ -1216,7 +1216,7 @@ gst_base_parse_pull_range (GstBaseParse * parse, guint size,
guint cache_size = GST_BUFFER_SIZE (parse->priv->cache);
if (cache_offset <= parse->priv->offset &&
(parse->priv->offset + size) < (cache_offset + cache_size)) {
(parse->priv->offset + size) <= (cache_offset + cache_size)) {
*buffer = gst_buffer_create_sub (parse->priv->cache,
parse->priv->offset - cache_offset, size);
GST_BUFFER_OFFSET (*buffer) = parse->priv->offset;