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

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-03-20 21:11:28 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-03-20 21:11:28 +0300
commit4874c7eb1fba2c3387ce77cdd53d63eec546b99c (patch)
tree55f79fb82eb177e1091822d310cd9ee381cdfce3 /audio
parent09a697faef0f6e36790f93e88ec4c821acb7d9dd (diff)
Correctly check for the `DISCONT` buffer flag to be set
Diffstat (limited to 'audio')
-rw-r--r--audio/audiofx/src/audiornnoise/imp.rs2
-rw-r--r--audio/csound/src/filter/imp.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/audiofx/src/audiornnoise/imp.rs b/audio/audiofx/src/audiornnoise/imp.rs
index 8a90c476..3633ec35 100644
--- a/audio/audiofx/src/audiornnoise/imp.rs
+++ b/audio/audiofx/src/audiornnoise/imp.rs
@@ -310,7 +310,7 @@ impl BaseTransformImpl for AudioRNNoise {
// if it is not the case, just notify the parent class to not generate
// an output
if let Some(buffer) = self.take_queued_buffer() {
- if buffer.flags() == gst::BufferFlags::DISCONT {
+ if buffer.flags().contains(gst::BufferFlags::DISCONT) {
self.drain(element)?;
}
diff --git a/audio/csound/src/filter/imp.rs b/audio/csound/src/filter/imp.rs
index 52faf47a..2761f7e8 100644
--- a/audio/csound/src/filter/imp.rs
+++ b/audio/csound/src/filter/imp.rs
@@ -644,7 +644,7 @@ impl BaseTransformImpl for CsoundFilter {
// if it is not the case, just notify the parent class to not generate
// an output
if let Some(buffer) = self.take_queued_buffer() {
- if buffer.flags() == gst::BufferFlags::DISCONT {
+ if buffer.flags().contains(gst::BufferFlags::DISCONT) {
self.drain(element)?;
}