projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7da59d
)
basesrc: use segment start if DTS for first buffer is unset
author
David Svensson Fors
<davidsf@axis.com>
Tue, 10 Dec 2013 14:53:54 +0000
(15:53 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Tue, 17 Dec 2013 09:47:55 +0000
(10:47 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=720199
libs/gst/base/gstbasesrc.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbasesrc.c
b/libs/gst/base/gstbasesrc.c
index
f84aa5e
..
39dd04b
100644
(file)
--- a/
libs/gst/base/gstbasesrc.c
+++ b/
libs/gst/base/gstbasesrc.c
@@
-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;