baseaudiosrc: adjust the internal timestamp

Adjust the internal timestamp before comparing it against the adjusted clock
time.
Fixes #578506
This commit is contained in:
Wim Taymans 2009-04-14 13:16:14 +02:00
parent 0c4c1410f9
commit dffd1bcc97

View file

@ -968,6 +968,9 @@ gst_base_audio_src_create (GstBaseSrc * bsrc, guint64 offset, guint length,
} else {
GstClockTime base_time;
/* to get the timestamp against the clock we also need to add our offset */
timestamp = gst_audio_clock_adjust (clock, timestamp);
/* we are not slaved, subtract base_time */
base_time = GST_ELEMENT_CAST (src)->base_time;