gstvalue: Prevent division or modulo by zero
authorEdward Hervey <edward@collabora.com>
Sat, 5 Apr 2014 09:37:53 +0000 (11:37 +0200)
committerEdward Hervey <edward@collabora.com>
Sat, 5 Apr 2014 09:37:53 +0000 (11:37 +0200)
commit470f194909b298c78205202c3b3880db121c8d26
tree0219de105319a0e129e6ee789f29372d191f1f9a
parente3388c22c2daa73f33080025148d9570be5eb446
gstvalue: Prevent division or modulo by zero

The step can end up being zero if the underlying value isn't a valid
range GValue.

In those cases, return FALSE.

We don't use g_return*_if_fail since it will already have been triggered
by the above-mentionned _get_step() functions.

Spotted by Coverity.
gst/gstvalue.c