mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-02 14:12:20 +00:00
Fix bug added with clippy refactor
This commit is contained in:
parent
440a353f93
commit
02f3b84bb3
2 changed files with 5 additions and 4 deletions
|
@ -375,9 +375,10 @@ impl BaseSrcImpl<BaseSrc> for NdiAudioSrc {
|
|||
|
||||
buffer.set_pts(pts + ndi_struct.start_pts);
|
||||
buffer.set_duration(duration);
|
||||
//TODO fix audio offset
|
||||
buffer.set_offset(timestamp_data.offset);
|
||||
buffer.set_offset_end(timestamp_data.offset + 1);
|
||||
timestamp_data.offset += timestamp_data.offset;
|
||||
timestamp_data.offset += 1;
|
||||
buffer.set_offset_end(timestamp_data.offset);
|
||||
buffer.copy_from_slice(0, &vec).unwrap();
|
||||
}
|
||||
|
||||
|
|
|
@ -384,8 +384,8 @@ impl BaseSrcImpl<BaseSrc> for NdiVideoSrc {
|
|||
buffer.set_pts(pts + ndi_struct.start_pts);
|
||||
buffer.set_duration(duration);
|
||||
buffer.set_offset(timestamp_data.offset);
|
||||
buffer.set_offset_end(timestamp_data.offset + 1);
|
||||
timestamp_data.offset += timestamp_data.offset;
|
||||
timestamp_data.offset += 1;
|
||||
buffer.set_offset_end(timestamp_data.offset);
|
||||
buffer.copy_from_slice(0, &vec).unwrap();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue