validate: Add missing parenthesis to seek position check
authorSebastian Dröge <sebastian@centricular.com>
Mon, 14 Mar 2016 12:29:57 +0000 (14:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 Mar 2016 12:29:57 +0000 (14:29 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=763602

validate/gst/validate/gst-validate-scenario.c

index fecc3fd..b7f56a9 100644 (file)
@@ -1071,13 +1071,13 @@ _check_position (GstValidateScenario * scenario, GstValidateAction * act,
 
   if (priv->seeked_in_pause && priv->seek_flags & GST_SEEK_FLAG_ACCURATE) {
     if ((rate > 0 && (*position >= priv->segment_start + priv->seek_pos_tol ||
-                *position < (priv->segment_start <
-                    priv->seek_pos_tol) ? 0 : priv->segment_start -
-                priv->seek_pos_tol))
+                *position < ((priv->segment_start <
+                        priv->seek_pos_tol) ? 0 : priv->segment_start -
+                    priv->seek_pos_tol)))
         || (rate < 0 && (*position > priv->segment_start + priv->seek_pos_tol
-                || *position < (priv->segment_start <
-                    priv->seek_pos_tol) ? 0 : priv->segment_start -
-                priv->seek_pos_tol))) {
+                || *position < ((priv->segment_start <
+                        priv->seek_pos_tol) ? 0 : priv->segment_start -
+                    priv->seek_pos_tol)))) {
       priv->seeked_in_pause = FALSE;
       GST_VALIDATE_REPORT (scenario, EVENT_SEEK_RESULT_POSITION_WRONG,
           "Reported position after accurate seek in PAUSED state should be exactly"