validate: Remove some dead code

Next will never be NULL as `done` is always set to TRUE when next is
set.

CID 1415503
This commit is contained in:
Thibault Saunier 2017-07-18 10:00:03 -04:00
parent 5c537bd627
commit 54e35bb082

View 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: