From 497105ca1b82f0270a6b835d85fc0a38b944d2f7 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 18 Dec 2009 13:30:07 +0100 Subject: [PATCH] baseparse: fix pull mode cache size comparison --- gst/audioparsers/gstbaseparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c index 909a806..bfbb73d 100644 --- a/gst/audioparsers/gstbaseparse.c +++ b/gst/audioparsers/gstbaseparse.c @@ -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; -- 2.7.4