mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +00:00
Merge pull request #1 from teltek/fix_audio_offset
Fix ndiaudiosrc offset
This commit is contained in:
commit
86cdb6e5a2
1 changed files with 1 additions and 2 deletions
|
@ -375,9 +375,8 @@ 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);
|
||||
timestamp_data.offset += 1;
|
||||
timestamp_data.offset += audio_frame.no_samples as u64/audio_frame.no_channels as u64;
|
||||
buffer.set_offset_end(timestamp_data.offset);
|
||||
buffer.copy_from_slice(0, &vec).unwrap();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue