mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pipewireclock: Disable clock_reset() for now
This was introduced in4faa28fd96in order to correctly map the time from the stream. Fromd52df30c88on, however, the clock switched to monotonic time, which does not need the extra-offset. Disable `clock_reset()` for now but leave it in place so we can easily reenable it once we use the stream time again. This fixes video recording in Cheese and similar apps. Closes https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3149
This commit is contained in:
parent
85e971dc06
commit
5fc782b893
1 changed files with 2 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ gst_pipewire_clock_init (GstPipeWireClock * clock)
|
|||
void
|
||||
gst_pipewire_clock_reset (GstPipeWireClock * clock, GstClockTime time)
|
||||
{
|
||||
#if 0
|
||||
GstClockTimeDiff time_offset;
|
||||
|
||||
if (clock->last_time >= time)
|
||||
|
|
@ -104,4 +105,5 @@ gst_pipewire_clock_reset (GstPipeWireClock * clock, GstClockTime time)
|
|||
"reset clock to %" GST_TIME_FORMAT ", last %" GST_TIME_FORMAT
|
||||
", offset %" GST_STIME_FORMAT, GST_TIME_ARGS (time),
|
||||
GST_TIME_ARGS (clock->last_time), GST_STIME_ARGS (time_offset));
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue