validate-utils: sqrt(-1.0) leads to undefined result
authorVineeth T M <vineeth.tm@samsung.com>
Fri, 29 May 2015 14:40:04 +0000 (15:40 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Fri, 29 May 2015 14:40:55 +0000 (15:40 +0100)
commit1e3084aa95463547cada647ec4a7d0725b4c43b0
treee82ff89d843a1fe156d6eee1d9c5f1f2737c6dda
parente832785604aed7d6166d2b79cbcaba287852b933
validate-utils: sqrt(-1.0) leads to undefined result

Using sqrt of -1 is not valid and leads to undefined results.
When comparing the return value of the fucntion in validate-scenario,
it is being checked with ret == -1, so it makes sense to just return -1 in error case.

https://bugzilla.gnome.org/show_bug.cgi?id=748389
validate/gst/validate/gst-validate-utils.c