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:
208e303
)
basesrc: Set format to TIME if do-timestamp is TRUE
author
Olivier Crête
<olivier.crete@collabora.com>
Wed, 3 Jul 2013 00:27:59 +0000
(20:27 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Thu, 5 Dec 2013 18:29:05 +0000
(13:29 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=702842
libs/gst/base/gstbasesrc.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstbasesrc.c
b/libs/gst/base/gstbasesrc.c
index
d5bad3d
..
5653967
100644
(file)
--- a/
libs/gst/base/gstbasesrc.c
+++ b/
libs/gst/base/gstbasesrc.c
@@
-763,6
+763,8
@@
gst_base_src_set_do_timestamp (GstBaseSrc * src, gboolean timestamp)
GST_OBJECT_LOCK (src);
src->priv->do_timestamp = timestamp;
+ if (timestamp && src->segment.format != GST_FORMAT_TIME)
+ gst_segment_init (&src->segment, GST_FORMAT_TIME);
GST_OBJECT_UNLOCK (src);
}