validate: Fix overflow seek position comparision
authorSebastian Dröge <sebastian@centricular.com>
Mon, 14 Mar 2016 10:55:57 +0000 (12:55 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 Mar 2016 11:00:14 +0000 (13:00 +0200)
commit3f0a13d52a1f185a3f7d48bce7dbd50db5a6ba24
treeefdf29c5f37898d28d652f39fd388c5b4057df6b
parentc2a35eef15de3d30edd44de2615a69585da572da
validate: Fix overflow seek position comparision

MAX(0, ((gint64) priv->segment_start - priv->seek_pos_tol) will be a high
positive number thanks to being interpreted as unsigned values if
segment_start < seek_pos_tol. Fix this by explicitly checking for this case
and only doing the subtraction otherwise.

This fixes the problem from fdccffbb2e5885b3f8e7369cdbda45b6717ffab0
completely now.

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