validate: Remove some dead code
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 18 Jul 2017 14:00:03 +0000 (10:00 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 18 Jul 2017 14:00:03 +0000 (10:00 -0400)
Next will never be NULL as `done` is always set to TRUE when next is
set.

CID 1415503

validate/gst/validate/gst-validate-media-info.c

index 0f990b1b170ddb01628bdddc885a98e9dba67385..a3cd7d6f818c91ec4016a290363e7c5be8de6483 100644 (file)
@@ -818,15 +818,6 @@ find_next_pad (GstElement * element, GstPad * pad)
         g_value_reset (&value);
         break;
       case GST_ITERATOR_RESYNC:
-        if (next) {
-          gst_object_unref (next);
-          next = NULL;
-          if (first) {
-            gst_object_unref (first);
-            first = NULL;
-          }
-          pick = FALSE;
-        }
         gst_iterator_resync (iterator);
         break;
       case GST_ITERATOR_ERROR: