mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
livesync: Correctly calculate fallback buffer duration from framerate
Numerator and denominator were switched. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1108>
This commit is contained in:
parent
542c7e12b8
commit
ff2f7a8505
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ impl State {
|
|||
.and_then(|s| s.get::<gst::Fraction>("framerate").ok())
|
||||
.and_then(|framerate| {
|
||||
gst::ClockTime::SECOND
|
||||
.mul_div_round(framerate.numer() as u64, framerate.denom() as u64)
|
||||
.mul_div_round(framerate.denom() as u64, framerate.numer() as u64)
|
||||
})
|
||||
.filter(|&dur| dur > 8.mseconds() && dur < 10.seconds())
|
||||
// Otherwise, half the configured latency
|
||||
|
|
Loading…
Reference in a new issue