summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2007-09-10 19:53:28 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-09-10 19:53:28 +0000
commit4b25ca62670ea837b9bf1569be869328b78b281f (patch)
tree757520e92d545ccbbade926c28f2e0175033a131
parent2d15f70302e00c62b53ae3dff9c13472c2c51ef1 (diff)
gst/udp/gstudpsrc.c: Make udpsrc timestamp outgoing buffers based on when they were received.
Original commit message from CVS: * gst/udp/gstudpsrc.c: (gst_udpsrc_init), (gst_udpsrc_create): Make udpsrc timestamp outgoing buffers based on when they were received. Also make it output a segment in time.
-rw-r--r--ChangeLog6
-rw-r--r--gst/udp/gstudpsrc.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2392c56f..f482fed7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-09-10 Wim Taymans <wim.taymans@gmail.com>
+
+ * gst/udp/gstudpsrc.c: (gst_udpsrc_init), (gst_udpsrc_create):
+ Make udpsrc timestamp outgoing buffers based on when they were received.
+ Also make it output a segment in time.
+
2007-09-10 Stefan Kost <ensonic@users.sf.net>
* gst/avi/gstavidemux.c:
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index 8dad0c93..31c8fe4e 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -322,6 +322,8 @@ gst_udpsrc_init (GstUDPSrc * udpsrc, GstUDPSrcClass * g_class)
udpsrc->sock = UDP_DEFAULT_SOCK;
udpsrc->control_sock[0] = -1;
udpsrc->control_sock[1] = -1;
+ gst_base_src_set_format (GST_BASE_SRC (udpsrc), GST_FORMAT_TIME);
+ gst_base_src_set_do_timestamp (GST_BASE_SRC (udpsrc), TRUE);
}
static void