mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 00:32:43 +00:00
baseaudiovisualizer: Fix 'comparison of unsigned expression >= 0 is always true' compiler warning
This commit is contained in:
parent
416b10b991
commit
e214b31f5c
1 changed files with 1 additions and 1 deletions
|
@ -828,7 +828,7 @@ gst_base_audio_visualizer_chain (GstPad * pad, GstBuffer * buffer)
|
|||
/* we want to take less or more, depending on spf : req_spf */
|
||||
if (avail - sbpf >= sbpf) {
|
||||
gst_adapter_flush (scope->adapter, sbpf);
|
||||
} else if (avail - sbpf >= 0) {
|
||||
} else if (avail >= sbpf) {
|
||||
/* just flush a bit and stop */
|
||||
gst_adapter_flush (scope->adapter, (avail - sbpf));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue