From cf18fae9deb02f0867b67593f678b932f8eb931a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 14 Sep 2016 16:51:30 +0200 Subject: [PATCH] audiotestsrc: Don't adjust segment time in seek handler basesrc already did that very well for us, adjusting it again on top of that just breaks various non-standard seeks. --- gst/audiotestsrc/gstaudiotestsrc.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 1c3b5bcc4e..252c416c11 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -1123,16 +1123,6 @@ gst_audio_test_src_do_seek (GstBaseSrc * basesrc, GstSegment * segment) src->next_sample = next_sample; - if (!src->reverse) { - if (GST_CLOCK_TIME_IS_VALID (segment->start)) { - segment->time = segment->start; - } - } else { - if (GST_CLOCK_TIME_IS_VALID (segment->stop)) { - segment->time = segment->stop; - } - } - if (GST_CLOCK_TIME_IS_VALID (segment->stop)) { time = segment->stop; src->sample_stop =