mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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:
parent
60dd37e56d
commit
9f5adb2ca3
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue