diff options
Diffstat (limited to 'gst/audiovisualizers/gstbaseaudiovisualizer.c')
-rw-r--r-- | gst/audiovisualizers/gstbaseaudiovisualizer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audiovisualizers/gstbaseaudiovisualizer.c b/gst/audiovisualizers/gstbaseaudiovisualizer.c index 7a76a99ce..b36dd328f 100644 --- a/gst/audiovisualizers/gstbaseaudiovisualizer.c +++ b/gst/audiovisualizers/gstbaseaudiovisualizer.c @@ -913,7 +913,7 @@ gst_base_audio_visualizer_chain (GstPad * pad, GstObject * parent, if (avail - sbpf >= sbpf) { gst_adapter_flush (scope->adapter, sbpf); gst_adapter_unmap (scope->adapter); - } else if (avail - sbpf >= 0) { + } else if (avail >= sbpf) { /* just flush a bit and stop */ gst_adapter_flush (scope->adapter, (avail - sbpf)); gst_adapter_unmap (scope->adapter); |