mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
fallbackswitch: Minor cleanup in get_sync_time
This commit is contained in:
parent
3de317b3c9
commit
de936f42e9
1 changed files with 7 additions and 8 deletions
|
@ -261,14 +261,13 @@ impl SinkState {
|
||||||
};
|
};
|
||||||
let end_ts = start_ts.saturating_add(duration);
|
let end_ts = start_ts.saturating_add(duration);
|
||||||
|
|
||||||
let (start_ts, end_ts) = match self.segment.clip(start_ts, end_ts) {
|
match self.segment.clip(start_ts, end_ts) {
|
||||||
Some((start_ts, end_ts)) => (start_ts, end_ts),
|
Some((start_ts, end_ts)) => (
|
||||||
None => return (None, None),
|
self.segment.to_running_time(start_ts),
|
||||||
};
|
self.segment.to_running_time(end_ts),
|
||||||
let start_ts = self.segment.to_running_time(start_ts);
|
),
|
||||||
let end_ts = self.segment.to_running_time(end_ts);
|
None => (None, None),
|
||||||
|
}
|
||||||
(start_ts, end_ts)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn schedule_clock(
|
fn schedule_clock(
|
||||||
|
|
Loading…
Reference in a new issue