diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2022-03-20 21:11:28 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2022-03-20 21:11:28 +0300 |
commit | 4874c7eb1fba2c3387ce77cdd53d63eec546b99c (patch) | |
tree | 55f79fb82eb177e1091822d310cd9ee381cdfce3 /audio/csound | |
parent | 09a697faef0f6e36790f93e88ec4c821acb7d9dd (diff) |
Correctly check for the `DISCONT` buffer flag to be set
Diffstat (limited to 'audio/csound')
-rw-r--r-- | audio/csound/src/filter/imp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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)?; } |