baseaudiovisualizer: Fix 'comparison of unsigned expression >= 0 is always true' compiler warning

This commit is contained in:
Sebastian Dröge 2012-03-06 14:38:47 +01:00
parent 416b10b991
commit e214b31f5c

View file

@ -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;