validate: Fix accurate seeking in paused failling condition
authorThibault Saunier <tsaunier@gnome.org>
Tue, 8 Mar 2016 11:00:19 +0000 (12:00 +0100)
committerThibault Saunier <tsaunier@gnome.org>
Tue, 8 Mar 2016 11:00:37 +0000 (12:00 +0100)
validate/gst/validate/gst-validate-scenario.c

index c9b6844..5fd8f25 100644 (file)
@@ -1071,10 +1071,10 @@ _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 < MIN (0,
+                *position < MAX (0,
                     ((gint64) priv->segment_start - priv->seek_pos_tol))))
         || (rate < 0 && (*position > priv->segment_start + priv->seek_pos_tol
-                || *position < MIN (0,
+                || *position < MAX (0,
                     (gint64) priv->segment_start - priv->seek_pos_tol)))) {
       priv->seeked_in_pause = FALSE;
       GST_VALIDATE_REPORT (scenario, EVENT_SEEK_RESULT_POSITION_WRONG,