basesrc: do not set first buffer timestamp to 0 for live sources

Doing so avoids a large timestamp gap between first and second buffer
for live sources which take time to start up.
The first buffer now has a "live" timestamp based on the running time,
as other buffers do.

https://bugzilla.gnome.org/show_bug.cgi?id=649369
This commit is contained in:
Vincent Penquerc'h 2011-05-04 15:31:56 +03:00 committed by Tim-Philipp Müller
parent 24888ecc70
commit 03050fd71d

View file

@ -2160,7 +2160,7 @@ again:
/* no timestamp set and we are at offset 0, we can timestamp with 0 */
if (offset == 0 && src->segment.time == 0
&& GST_BUFFER_TIMESTAMP (*buf) == -1) {
&& GST_BUFFER_TIMESTAMP (*buf) == -1 && !src->is_live) {
*buf = gst_buffer_make_metadata_writable (*buf);
GST_BUFFER_TIMESTAMP (*buf) = 0;
}