mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 05:26:23 +00:00
basesrc: use segment start if DTS for first buffer is unset
https://bugzilla.gnome.org/show_bug.cgi?id=720199
This commit is contained in:
parent
f7da59dd9f
commit
892d36211f
1 changed files with 5 additions and 1 deletions
|
@ -2187,7 +2187,11 @@ gst_base_src_do_sync (GstBaseSrc * basesrc, GstBuffer * buffer)
|
|||
if (do_timestamp) {
|
||||
dts = running_time;
|
||||
} else {
|
||||
dts = 0;
|
||||
if (GST_CLOCK_TIME_IS_VALID (basesrc->segment.start)) {
|
||||
dts = basesrc->segment.start;
|
||||
} else {
|
||||
dts = 0;
|
||||
}
|
||||
}
|
||||
GST_BUFFER_DTS (buffer) = dts;
|
||||
|
||||
|
|
Loading…
Reference in a new issue