summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2015-08-04 14:41:10 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-08-04 18:00:35 -0400
commit7db376d05ed5ee16af8eda18032a4b70b8a8ad40 (patch)
tree165cc920784eb50f36ca9cc8f023806645057fb0
parent315857dce64b7d1e0e57234f791abe533b18a9e9 (diff)
videotestsrc: Don't set DTS on buffer
DTS is for encoded data and have no meaning for raw. It better to not set it, as it's confusing. https://bugzilla.gnome.org/show_bug.cgi?id=752791
-rw-r--r--gst/videotestsrc/gstvideotestsrc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/videotestsrc/gstvideotestsrc.c b/gst/videotestsrc/gstvideotestsrc.c
index 96a2a926a..f646b4c2c 100644
--- a/gst/videotestsrc/gstvideotestsrc.c
+++ b/gst/videotestsrc/gstvideotestsrc.c
@@ -857,7 +857,7 @@ gst_video_test_src_get_times (GstBaseSrc * basesrc, GstBuffer * buffer,
{
/* for live sources, sync on the timestamp of the buffer */
if (gst_base_src_is_live (basesrc)) {
- GstClockTime timestamp = GST_BUFFER_DTS (buffer);
+ GstClockTime timestamp = GST_BUFFER_PTS (buffer);
if (GST_CLOCK_TIME_IS_VALID (timestamp)) {
/* get duration to calculate end time */
@@ -945,11 +945,11 @@ gst_video_test_src_fill (GstPushSrc * psrc, GstBuffer * buffer)
if (!gst_video_frame_map (&frame, &src->info, buffer, GST_MAP_WRITE))
goto invalid_frame;
- GST_BUFFER_DTS (buffer) =
+ GST_BUFFER_PTS (buffer) =
src->accum_rtime + src->timestamp_offset + src->running_time;
- GST_BUFFER_PTS (buffer) = GST_BUFFER_DTS (buffer);
+ GST_BUFFER_DTS (buffer) = GST_CLOCK_TIME_NONE;
- gst_object_sync_values (GST_OBJECT (psrc), GST_BUFFER_DTS (buffer));
+ gst_object_sync_values (GST_OBJECT (psrc), GST_BUFFER_PTS (buffer));
src->make_image (src, &frame);