mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
gst: update to current API
This commit is contained in:
parent
e0676fcef8
commit
3f45ccd6a5
3 changed files with 6 additions and 6 deletions
|
|
@ -50,12 +50,12 @@ gst_pipewire_clock_get_internal_time (GstClock * clock)
|
|||
|
||||
pw_stream_get_time (pclock->stream, &t);
|
||||
|
||||
if (t.rate)
|
||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND, t.rate);
|
||||
if (t.rate.denom)
|
||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND * t.rate.num, t.rate.denom);
|
||||
else
|
||||
result = GST_CLOCK_TIME_NONE;
|
||||
|
||||
GST_DEBUG ("%"PRId64", %d %"PRId64, t.ticks, t.rate, result);
|
||||
GST_DEBUG ("%"PRId64", %d %"PRId64, t.ticks, t.rate.denom, result);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue