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.
This commit is contained in:
Sebastian Dröge 2009-11-19 16:08:33 +01:00
parent 60dd37e56d
commit 9f5adb2ca3

View file

@ -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;