mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-09 10:45:27 +00:00
Correctly check for the DISCONT
buffer flag to be set
This commit is contained in:
parent
026b0f9260
commit
111257b81c
2 changed files with 2 additions and 2 deletions
|
@ -311,7 +311,7 @@ impl BaseTransformImpl for AudioRNNoise {
|
||||||
// if it is not the case, just notify the parent class to not generate
|
// if it is not the case, just notify the parent class to not generate
|
||||||
// an output
|
// an output
|
||||||
if let Some(buffer) = self.take_queued_buffer() {
|
if let Some(buffer) = self.take_queued_buffer() {
|
||||||
if buffer.flags() == gst::BufferFlags::DISCONT {
|
if buffer.flags().contains(gst::BufferFlags::DISCONT) {
|
||||||
self.drain(element)?;
|
self.drain(element)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -646,7 +646,7 @@ impl BaseTransformImpl for CsoundFilter {
|
||||||
// if it is not the case, just notify the parent class to not generate
|
// if it is not the case, just notify the parent class to not generate
|
||||||
// an output
|
// an output
|
||||||
if let Some(buffer) = self.take_queued_buffer() {
|
if let Some(buffer) = self.take_queued_buffer() {
|
||||||
if buffer.flags() == gst::BufferFlags::DISCONT {
|
if buffer.flags().contains(gst::BufferFlags::DISCONT) {
|
||||||
self.drain(element)?;
|
self.drain(element)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue