Revert "segment: also intialize the duration"

This reverts commit f1baaae175.
This commit is contained in:
Stefan Sauer 2017-10-20 16:11:44 +02:00
parent f1baaae175
commit 38dd43df29

View file

@ -364,12 +364,6 @@ gst_segment_do_seek (GstSegment * segment, gdouble rate,
segment->offset = 0;
}
if (start != -1 && stop != -1) {
segment->duration = stop - start;
} else {
segment->duration = -1;
}
segment->start = start;
segment->stop = stop;
segment->time = start;