From 9f5adb2ca3620407fbad9ac009b9e3d962c69db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 19 Nov 2009 16:08:33 +0100 Subject: [PATCH] wavpackparse: Allow pulling the last WavPack frame of a file Because of a >= instead of a >, that last frame of a WavPack file would never be parsed in pull mode. --- ext/wavpack/gstwavpackparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c index 8fea90b0c6..1e6aa21f47 100644 --- a/ext/wavpack/gstwavpackparse.c +++ b/ext/wavpack/gstwavpackparse.c @@ -796,9 +796,9 @@ gst_wavpack_parse_pull_buffer (GstWavpackParse * wvparse, gint64 offset, GstBuffer *buf = NULL; - if (offset + size >= wvparse->upstream_length) { + if (offset + size > wvparse->upstream_length) { wvparse->upstream_length = gst_wavpack_parse_get_upstream_length (wvparse); - if (offset + size >= wvparse->upstream_length) { + if (offset + size > wvparse->upstream_length) { GST_DEBUG_OBJECT (wvparse, "EOS: %" G_GINT64_FORMAT " + %u > %" G_GINT64_FORMAT, offset, size, wvparse->upstream_length); flow_ret = GST_FLOW_UNEXPECTED;