pipewireclock: Disable clock_reset() for now

This was introduced in 4faa28fd96 in order to correctly map the time
from the stream. From d52df30c88 on, 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:
Robert Mader 2023-04-11 20:45:18 +02:00 committed by Wim Taymans
parent 85e971dc06
commit 5fc782b893

View file

@ -91,6 +91,7 @@ gst_pipewire_clock_init (GstPipeWireClock * clock)
void void
gst_pipewire_clock_reset (GstPipeWireClock * clock, GstClockTime time) gst_pipewire_clock_reset (GstPipeWireClock * clock, GstClockTime time)
{ {
#if 0
GstClockTimeDiff time_offset; GstClockTimeDiff time_offset;
if (clock->last_time >= time) 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 "reset clock to %" GST_TIME_FORMAT ", last %" GST_TIME_FORMAT
", offset %" GST_STIME_FORMAT, GST_TIME_ARGS (time), ", offset %" GST_STIME_FORMAT, GST_TIME_ARGS (time),
GST_TIME_ARGS (clock->last_time), GST_STIME_ARGS (time_offset)); GST_TIME_ARGS (clock->last_time), GST_STIME_ARGS (time_offset));
#endif
} }