mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +00:00
Fix video latency
This commit is contained in:
parent
72bd822525
commit
90b5fa8937
1 changed files with 2 additions and 2 deletions
|
@ -285,7 +285,7 @@ impl BaseSrcImpl<BaseSrc> for NdiVideoSrc {
|
|||
|
||||
if let Some(ref _info) = state.info {
|
||||
let latency = settings.latency.unwrap();
|
||||
// q.set(true, latency, gst::CLOCK_TIME_NONE);
|
||||
q.set(true, latency, gst::CLOCK_TIME_NONE);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
@ -313,8 +313,8 @@ impl BaseSrcImpl<BaseSrc> for NdiVideoSrc {
|
|||
}
|
||||
|
||||
settings.latency = gst::SECOND.mul_div_floor(
|
||||
video_frame.frame_rate_N as u64,
|
||||
video_frame.frame_rate_D as u64,
|
||||
video_frame.frame_rate_N as u64,
|
||||
);
|
||||
|
||||
let mut caps = gst::Caps::truncate(caps);
|
||||
|
|
Loading…
Reference in a new issue