Set pts and dts

This commit is contained in:
QuantumEntangledAndy committed 2023-06-06 11:39:03 +07:00
1 parent a08019bc09
commit de0528b1b8
1 file changed
+2
+2
View File
@@ -783,6 +783,7 @@ impl NeoMediaSender {
runtime.try_into().unwrap(),
);
gst_buf_mut.set_dts(time);
gst_buf_mut.set_pts(time);
let mut gst_buf_data =
gst_buf_mut.map_writable().unwrap();
gst_buf_data.copy_from_slice(buf.as_slice());
@@ -841,6 +842,7 @@ impl NeoMediaSender {
runtime.try_into().unwrap(),
);
gst_buf_mut.set_dts(time);
gst_buf_mut.set_pts(time);
let mut gst_buf_data =
gst_buf_mut.map_writable().unwrap();
gst_buf_data.copy_from_slice(buf.as_slice());