fallbackswitch,togglerecord: Don't apply clipped PTS to buffer DTS

Setting DTS on raw video buffers doesn't make sense and it's even wrong
in case of compressed video stream because PTS might be able to
go back when B frames are placed, but DTS is expected to be monotonically
increased.
This commit is contained in:
Seungha Yang 2021-01-18 23:55:20 +09:00
parent 72700fb07e
commit 084c9d1447
2 changed files with 0 additions and 2 deletions

View file

@ -1128,7 +1128,6 @@ impl AggregatorImpl for FallbackSwitch {
{
let buffer = buffer.make_mut();
buffer.set_pts(start);
buffer.set_dts(start);
if duration.is_some() {
buffer.set_duration(stop - start);
}

View file

@ -336,7 +336,6 @@ impl HandleData for gst::Buffer {
{
let buffer = self.make_mut();
buffer.set_pts(start);
buffer.set_dts(start);
buffer.set_duration(stop - start);
}