mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
gst: always use the clock time
Also use the clock time when the stream is not yet started.
This commit is contained in:
parent
4cb2d58e89
commit
26fa35a0e7
1 changed files with 3 additions and 3 deletions
|
|
@ -53,16 +53,16 @@ gst_pipewire_clock_get_internal_time (GstClock * clock)
|
|||
{
|
||||
GstPipeWireClock *pclock = (GstPipeWireClock *) clock;
|
||||
GstClockTime result;
|
||||
struct pw_time t;
|
||||
struct timespec ts;
|
||||
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
#if 0
|
||||
struct pw_time t;
|
||||
if (pclock->stream == NULL ||
|
||||
pw_stream_get_time (pclock->stream, &t) < 0 ||
|
||||
t.rate.denom == 0)
|
||||
return pclock->last_time;
|
||||
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
#if 0
|
||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
|
||||
result += SPA_TIMESPEC_TO_NSEC(&ts) - t.now;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue