summaryrefslogtreecommitdiff
path: root/gst/audiotestsrc
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-09-14 16:51:30 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-09-14 16:51:30 +0200
commitcf18fae9deb02f0867b67593f678b932f8eb931a (patch)
tree5015e6f89e24e5f40d84e4755534dba7398d7424 /gst/audiotestsrc
parentfef0efdddb6edfd02a1e309979203e8ab3559d2a (diff)
downloadgstreamer-plugins-base-cf18fae9deb02f0867b67593f678b932f8eb931a.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.
Diffstat (limited to 'gst/audiotestsrc')
-rw-r--r--gst/audiotestsrc/gstaudiotestsrc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c
index 1c3b5bcc4..252c416c1 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 =