mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pinossrc: fix timestamp and clock handling
Send the base-time to the client so that it can calibrarte the clock. Wait until we are completely negotiated before completing the state change to paused. This makes it possible to provide a clock and decide if we are live or not.
This commit is contained in:
parent
f3053c963d
commit
b86eb22922
4 changed files with 77 additions and 34 deletions
|
|
@ -332,6 +332,9 @@ gst_pinos_socket_sink_render_other (GstPinosSocketSink * this, GstBuffer * buffe
|
|||
p.size = fdmem->size;
|
||||
pinos_buffer_builder_add_fd_payload (&builder, &p);
|
||||
|
||||
GST_LOG ("send %d %"G_GUINT64_FORMAT" %"G_GUINT64_FORMAT" %"G_GUINT64_FORMAT,
|
||||
p.id, hdr.pts, GST_BUFFER_PTS (buffer), GST_ELEMENT_CAST (this)->base_time);
|
||||
|
||||
pinos_buffer_builder_end (&builder, &pbuf);
|
||||
gst_memory_unref(fdmem);
|
||||
fdmem = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue