mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 21:46:22 +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
|
@ -2186,9 +2186,13 @@ gst_base_src_do_sync (GstBaseSrc * basesrc, GstBuffer * buffer)
|
|||
if (!GST_CLOCK_TIME_IS_VALID (dts)) {
|
||||
if (do_timestamp) {
|
||||
dts = running_time;
|
||||
} else {
|
||||
if (GST_CLOCK_TIME_IS_VALID (basesrc->segment.start)) {
|
||||
dts = basesrc->segment.start;
|
||||
} else {
|
||||
dts = 0;
|
||||
}
|
||||
}
|
||||
GST_BUFFER_DTS (buffer) = dts;
|
||||
|
||||
GST_LOG_OBJECT (basesrc, "created DTS %" GST_TIME_FORMAT,
|
||||
|
|
Loading…
Reference in a new issue