mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
baseaudiosrc: adjust the internal timestamp
Adjust the internal timestamp before comparing it against the adjusted clock time. Fixes #578506
This commit is contained in:
parent
0c4c1410f9
commit
dffd1bcc97
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue