Commit dffd1bcc authored by Wim Taymans's avatar Wim Taymans
Browse files

baseaudiosrc: adjust the internal timestamp

Adjust the internal timestamp before comparing it against the adjusted clock
Fixes #578506
parent 0c4c1410
......@@ -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;
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