diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-09-14 16:51:30 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-09-30 13:41:28 +0300 |
commit | 31dd3706cbb29fa61a901474f45cd9e0473f1f27 (patch) | |
tree | f52fc4956ae756c7eed73366b7aff5df6547edb3 | |
parent | 4bc31e1b56febad506e1500ff10f147c882692cd (diff) | |
download | gstreamer-plugins-base-31dd3706cbb29fa61a901474f45cd9e0473f1f27.tar.gz |
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.
-rw-r--r-- | gst/audiotestsrc/gstaudiotestsrc.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 15cb4a3d9..064bf3507 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 = |