Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'generic/threadshare/src/audiotestsrc/imp.rs')
-rw-r--r--generic/threadshare/src/audiotestsrc/imp.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/threadshare/src/audiotestsrc/imp.rs b/generic/threadshare/src/audiotestsrc/imp.rs
index 9ae51d0b3..c48f56fa4 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,
+ )),
);
}
}