mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
gst: handle clock reset
The clock time is reset to 0 after a new format is negotiated. Make sure the time reported by the gstreamer clock is increasing in this case.
This commit is contained in:
parent
8591d85710
commit
4faa28fd96
4 changed files with 31 additions and 2 deletions
|
|
@ -502,6 +502,9 @@ on_format_changed (void *data, const struct spa_pod *format)
|
|||
{
|
||||
GstPipeWireSink *pwsink = data;
|
||||
|
||||
if (format == NULL)
|
||||
return;
|
||||
|
||||
if (gst_buffer_pool_is_active (GST_BUFFER_POOL_CAST (pwsink->pool)))
|
||||
pool_activated (pwsink->pool, pwsink);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue