Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-01-18 17:55:20 +0300
committerSeungha Yang <seungha@centricular.com>2021-01-19 13:45:14 +0300
commit084c9d1447614fe5352c0106e9a1a9e1bb6af6e7 (patch)
tree6cd239355524669967b4275c67addda25fbdf50e
parent72700fb07e49457b4a63b0f323f33eb045d53dd7 (diff)
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.
-rw-r--r--utils/fallbackswitch/src/fallbackswitch/imp.rs1
-rw-r--r--utils/togglerecord/src/togglerecord/imp.rs1
2 files changed, 0 insertions, 2 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs
index 082a82690..93a125708 100644
--- a/utils/fallbackswitch/src/fallbackswitch/imp.rs
+++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs
@@ -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);
}
diff --git a/utils/togglerecord/src/togglerecord/imp.rs b/utils/togglerecord/src/togglerecord/imp.rs
index 7ca671cae..e61406489 100644
--- a/utils/togglerecord/src/togglerecord/imp.rs
+++ b/utils/togglerecord/src/togglerecord/imp.rs
@@ -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);
}