Commit ab76fa09 authored by Michael Smith's avatar Michael Smith

gst/: Use the segment->last_stop value to calculate the next timestamp to...

gst/: Use the segment->last_stop value to calculate the next timestamp to generate after a seek; not the segment->sta...

Original commit message from CVS:
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_do_seek):
* gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_do_seek):
Use the segment->last_stop value to calculate the next timestamp to
generate after a seek; not the segment->start value.
parent bd9d834b
2007-05-17 Michael Smith <msmith@fluendo.com>
* gst/audiotestsrc/gstaudiotestsrc.c: (gst_audio_test_src_do_seek):
* gst/videotestsrc/gstvideotestsrc.c: (gst_video_test_src_do_seek):
Use the segment->last_stop value to calculate the next timestamp to
generate after a seek; not the segment->start value.
2007-05-15 David Schleef <ds@schleef.org>
* docs/Makefile.am: Install docs even when --disable-gtk-doc
......@@ -607,7 +607,8 @@ gst_audio_test_src_do_seek (GstBaseSrc * basesrc, GstSegment * segment)
GstAudioTestSrc *src = GST_AUDIO_TEST_SRC (basesrc);
GstClockTime time;
time = segment->time = segment->start;
segment->time = segment->start;
time = segment->last_stop;
/* now move to the time indicated */
src->n_samples = time * src->samplerate / GST_SECOND;
......
......@@ -497,7 +497,8 @@ gst_video_test_src_do_seek (GstBaseSrc * bsrc, GstSegment * segment)
src = GST_VIDEO_TEST_SRC (bsrc);
time = segment->time = segment->start;
segment->time = segment->start;
time = segment->last_stop;
/* now move to the time indicated */
if (src->rate_numerator) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment