mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-01 13:42:21 +00:00
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:
parent
72700fb07e
commit
084c9d1447
2 changed files with 0 additions and 2 deletions
|
@ -1128,7 +1128,6 @@ impl AggregatorImpl for FallbackSwitch {
|
||||||
{
|
{
|
||||||
let buffer = buffer.make_mut();
|
let buffer = buffer.make_mut();
|
||||||
buffer.set_pts(start);
|
buffer.set_pts(start);
|
||||||
buffer.set_dts(start);
|
|
||||||
if duration.is_some() {
|
if duration.is_some() {
|
||||||
buffer.set_duration(stop - start);
|
buffer.set_duration(stop - start);
|
||||||
}
|
}
|
||||||
|
|
|
@ -336,7 +336,6 @@ impl HandleData for gst::Buffer {
|
||||||
{
|
{
|
||||||
let buffer = self.make_mut();
|
let buffer = self.make_mut();
|
||||||
buffer.set_pts(start);
|
buffer.set_pts(start);
|
||||||
buffer.set_dts(start);
|
|
||||||
buffer.set_duration(stop - start);
|
buffer.set_duration(stop - start);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue