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:
authorSebastian Dröge <sebastian@centricular.com>2022-03-20 21:11:28 +0300
committerArun Raghavan <arun@asymptotic.io>2022-03-21 11:20:07 +0300
commit111257b81c06fae0562c4a30fa28736bc24cfc78 (patch)
tree0651749e69f2fe7ce2f774343e6a4c359f590b7e
parent026b0f9260683be4ad1be1265ee20178f94ea2f4 (diff)
Correctly check for the `DISCONT` buffer flag to be set
-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 1e865414e..40b16265a 100644
--- a/audio/audiofx/src/audiornnoise/imp.rs
+++ b/audio/audiofx/src/audiornnoise/imp.rs
@@ -311,7 +311,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 70246c78d..6b7099a6f 100644
--- a/audio/csound/src/filter/imp.rs
+++ b/audio/csound/src/filter/imp.rs
@@ -646,7 +646,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)?;
}