mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
adder: Fill in offset_end field of outgoing buffers
... rather than leave it as GST_BUFFER_OFFSET_NONE Fix bug #642942.
This commit is contained in:
parent
19052a847d
commit
27178f7aff
1 changed files with 2 additions and 0 deletions
|
@ -1208,10 +1208,12 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
|
|||
if (adder->segment_rate > 0.0) {
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = adder->timestamp;
|
||||
GST_BUFFER_OFFSET (outbuf) = adder->offset;
|
||||
GST_BUFFER_OFFSET_END (outbuf) = next_offset;
|
||||
GST_BUFFER_DURATION (outbuf) = next_timestamp - adder->timestamp;
|
||||
} else {
|
||||
GST_BUFFER_TIMESTAMP (outbuf) = next_timestamp;
|
||||
GST_BUFFER_OFFSET (outbuf) = next_offset;
|
||||
GST_BUFFER_OFFSET_END (outbuf) = adder->offset;
|
||||
GST_BUFFER_DURATION (outbuf) = adder->timestamp - next_timestamp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue