[gst-cvs] gst-plugins-bad: baseparse: fix pull mode cache size comparison
Mark Nauwelaerts
mnauw at kemper.freedesktop.org
Fri Dec 18 04:44:39 PST 2009
Module: gst-plugins-bad
Branch: master
Commit: d51d8ca35ce82b5975f3eb19074f987058b4f838
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=d51d8ca35ce82b5975f3eb19074f987058b4f838
Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date: Fri Dec 18 13:30:07 2009 +0100
baseparse: fix pull mode cache size comparison
---
gst/audioparsers/gstbaseparse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
More information about the Gstreamer-commits
mailing list