mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
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:
parent
24888ecc70
commit
03050fd71d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue