summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-19 16:08:33 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-19 16:10:55 +0100
commit9f5adb2ca3620407fbad9ac009b9e3d962c69db6 (patch)
treef3764e4e138cde1eaa857455cf50292e7dd52bea
parent60dd37e56dc5d082756cd54e23022282712fcca2 (diff)
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.
-rw-r--r--ext/wavpack/gstwavpackparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wavpack/gstwavpackparse.c b/ext/wavpack/gstwavpackparse.c
index 8fea90b0c..1e6aa21f4 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;