audiovisualizer: remove check if below zero for unsigned value
authorLuis de Bethencourt <luis.bg@samsung.com>
Fri, 9 Jan 2015 14:42:34 +0000 (14:42 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Fri, 9 Jan 2015 14:42:34 +0000 (14:42 +0000)
commit9d9a1af45ab9e670ae0bf814da65f9d420c0e7df
tree66a06ae135dc9cdaf6c8e6fa0dcb17ef5bd93469
parentd310c0c460b787320fa0d688147d0d91676b3e8e
audiovisualizer: remove check if below zero for unsigned value

CLAMP checks both if y is '< 0' and '> h1'. y will never be a negative number
since it is an unsigned integer. Removing that check and only checking if it
bigger than h1 and setting it to that max approprietaly.

CID 1139792
gst/audiovisualizers/gstwavescope.c