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
committerSebastian Dröge <sebastian@centricular.com>2022-03-20 21:11:28 +0300
commit4874c7eb1fba2c3387ce77cdd53d63eec546b99c (patch)
tree55f79fb82eb177e1091822d310cd9ee381cdfce3 /audio/csound/src/filter/imp.rs
parent09a697faef0f6e36790f93e88ec4c821acb7d9dd (diff)
Correctly check for the `DISCONT` buffer flag to be set
Diffstat (limited to 'audio/csound/src/filter/imp.rs')
-rw-r--r--audio/csound/src/filter/imp.rs2
1 files changed, 1 insertions, 1 deletions
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)?;
}