diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-11-27 02:12:46 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-11-27 02:12:46 +0300 |
commit | fceacf708193271204c7ae9303f1002c10592597 (patch) | |
tree | 6c7ef05c22087a0f3ff9ffe445f0f3887100be78 /generic | |
parent | 0e2a00cbc88deed0e701bacf0fefd6dae70afbda (diff) |
Update for gst::Array / gst::List API improvements
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/985>
Diffstat (limited to 'generic')
-rw-r--r-- | generic/threadshare/src/audiotestsrc/imp.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/threadshare/src/audiotestsrc/imp.rs b/generic/threadshare/src/audiotestsrc/imp.rs index 9ae51d0b..c48f56fa 100644 --- a/generic/threadshare/src/audiotestsrc/imp.rs +++ b/generic/threadshare/src/audiotestsrc/imp.rs @@ -217,9 +217,11 @@ impl AudioTestSrcTask { self.channels = s.get::<i32>("channels").unwrap() as usize; if self.channels > 2 { - s.set::<gst::Bitmask>( + s.set( "channel-mask", - gst_audio::AudioChannelPosition::fallback_mask(self.channels as u32).into(), + gst::Bitmask::from(gst_audio::AudioChannelPosition::fallback_mask( + self.channels as u32, + )), ); } } |