mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-10 22:01:29 +00:00
wavpackenc: restore legacy buffer offset decorating somewhat
... at least sufficiently to aid in recognizing rewritten header buffer making unit test pass.
This commit is contained in:
parent
a4ed5daae6
commit
7dbb1551ae
1 changed files with 7 additions and 0 deletions
|
@ -616,6 +616,13 @@ gst_wavpack_enc_push_block (void *id, void *data, int32_t count)
|
|||
}
|
||||
}
|
||||
samples = wph.block_samples;
|
||||
|
||||
/* decorate buffer */
|
||||
/* NOTE: this will get overwritten by baseclass, but stay for those
|
||||
* that are pushed directly
|
||||
* FIXME: add setting to baseclass to avoid overwriting it ?? */
|
||||
GST_BUFFER_OFFSET (buffer) = wph.block_index;
|
||||
GST_BUFFER_OFFSET_END (buffer) = wph.block_index + wph.block_samples;
|
||||
} else {
|
||||
/* if it's something else set no timestamp and duration on the buffer */
|
||||
GST_DEBUG_OBJECT (enc, "got %d bytes of unknown data", count);
|
||||
|
|
Loading…
Reference in a new issue