From 38dd43df29af4f7abd2263bfbe40caba9b794d24 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Fri, 20 Oct 2017 16:11:44 +0200 Subject: [PATCH] Revert "segment: also intialize the duration" This reverts commit f1baaae17557fa75a9bcd940b994597714be2f74. --- gst/gstsegment.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/gstsegment.c b/gst/gstsegment.c index f69c6f1..f355d4a 100644 --- a/gst/gstsegment.c +++ b/gst/gstsegment.c @@ -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; -- 2.7.4