diff options
-rw-r--r-- | audio/audiofx/src/audiornnoise/imp.rs | 2 | ||||
-rw-r--r-- | audio/csound/src/filter/imp.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/audiofx/src/audiornnoise/imp.rs b/audio/audiofx/src/audiornnoise/imp.rs index 8a90c4762..3633ec351 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 52faf47a8..2761f7e8a 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)?; } |