dvbsrc: Timestamp output by default

Allows downstream elements (like demuxers or parsers) to do remote
clock rate/skew estimation.
This commit is contained in:
Edward Hervey 2012-02-24 17:07:43 +01:00
parent 6a8d2c45f6
commit 939087940c

View file

@ -468,6 +468,8 @@ gst_dvbsrc_init (GstDvbSrc * object, GstDvbSrcClass * klass)
/* We are a live source */
gst_base_src_set_live (GST_BASE_SRC (object), TRUE);
/* And we wanted timestamped output */
gst_base_src_set_do_timestamp (GST_BASE_SRC (object), TRUE);
object->fd_frontend = -1;
object->fd_dvr = -1;
@ -945,7 +947,6 @@ gst_dvbsrc_read_device (GstDvbSrc * object, int size)
}
GST_BUFFER_SIZE (buf) = count;
GST_BUFFER_TIMESTAMP (buf) = GST_CLOCK_TIME_NONE;
return buf;
stopped: