mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
fallbacksrc: Actually calculate running times of segment start/stop if the PTS is outside the segment
Previously it was just using the segment start/stop without converting it to the corresponding running time.
This commit is contained in:
parent
6db599e5ae
commit
86021d637b
1 changed files with 2 additions and 2 deletions
|
@ -1573,9 +1573,9 @@ impl FallbackSrc {
|
||||||
let running_time = if let Some((_, start)) =
|
let running_time = if let Some((_, start)) =
|
||||||
pts.zip(segment.start()).filter(|(pts, start)| pts < start)
|
pts.zip(segment.start()).filter(|(pts, start)| pts < start)
|
||||||
{
|
{
|
||||||
Some(start)
|
segment.to_running_time(start)
|
||||||
} else if let Some((_, stop)) = pts.zip(segment.stop()).filter(|(pts, stop)| pts >= stop) {
|
} else if let Some((_, stop)) = pts.zip(segment.stop()).filter(|(pts, stop)| pts >= stop) {
|
||||||
Some(stop)
|
segment.to_running_time(stop)
|
||||||
} else {
|
} else {
|
||||||
segment.to_running_time(pts)
|
segment.to_running_time(pts)
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue