mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-09-01 01:13:48 +00:00
meta: MetaTransformCopy accept 0.. as equivalent to ..
If the range is 0.., then there is no region Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1776>
This commit is contained in:
parent
672c19dad0
commit
032e9a7f75
1 changed files with 2 additions and 2 deletions
|
@ -1115,8 +1115,8 @@ impl MetaTransformCopy {
|
|||
pub fn new(range: impl RangeBounds<usize>) -> Self {
|
||||
skip_assert_initialized!();
|
||||
|
||||
let region =
|
||||
!(range.start_bound() == Bound::Unbounded && range.end_bound() == Bound::Unbounded);
|
||||
let region = !(matches!(range.start_bound(), Bound::Unbounded | Bound::Included(0))
|
||||
&& range.end_bound() == Bound::Unbounded);
|
||||
|
||||
let (offset, size) = if region {
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue