baseaudiovisualizer: Fix 'comparison of unsigned expression >= 0 is always true' compiler warning
This commit is contained in:
parent
416b10b991
commit
e214b31f5c
@ -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 */
|
/* we want to take less or more, depending on spf : req_spf */
|
||||||
if (avail - sbpf >= sbpf) {
|
if (avail - sbpf >= sbpf) {
|
||||||
gst_adapter_flush (scope->adapter, sbpf);
|
gst_adapter_flush (scope->adapter, sbpf);
|
||||||
} else if (avail - sbpf >= 0) {
|
} else if (avail >= sbpf) {
|
||||||
/* just flush a bit and stop */
|
/* just flush a bit and stop */
|
||||||
gst_adapter_flush (scope->adapter, (avail - sbpf));
|
gst_adapter_flush (scope->adapter, (avail - sbpf));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user