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.
This commit is contained in:
Sebastian Dröge 2016-09-14 16:51:30 +02:00
parent fef0efdddb
commit cf18fae9de

View file

@ -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 =