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
@ -1208,10 +1208,12 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data)
|
|||||||
if (adder->segment_rate > 0.0) {
|
if (adder->segment_rate > 0.0) {
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) = adder->timestamp;
|
GST_BUFFER_TIMESTAMP (outbuf) = adder->timestamp;
|
||||||
GST_BUFFER_OFFSET (outbuf) = adder->offset;
|
GST_BUFFER_OFFSET (outbuf) = adder->offset;
|
||||||
|
GST_BUFFER_OFFSET_END (outbuf) = next_offset;
|
||||||
GST_BUFFER_DURATION (outbuf) = next_timestamp - adder->timestamp;
|
GST_BUFFER_DURATION (outbuf) = next_timestamp - adder->timestamp;
|
||||||
} else {
|
} else {
|
||||||
GST_BUFFER_TIMESTAMP (outbuf) = next_timestamp;
|
GST_BUFFER_TIMESTAMP (outbuf) = next_timestamp;
|
||||||
GST_BUFFER_OFFSET (outbuf) = next_offset;
|
GST_BUFFER_OFFSET (outbuf) = next_offset;
|
||||||
|
GST_BUFFER_OFFSET_END (outbuf) = adder->offset;
|
||||||
GST_BUFFER_DURATION (outbuf) = adder->timestamp - next_timestamp;
|
GST_BUFFER_DURATION (outbuf) = adder->timestamp - next_timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user