gst: update to current API

This commit is contained in:
Wim Taymans 2018-07-08 15:23:28 +02:00
parent e0676fcef8
commit 3f45ccd6a5
3 changed files with 6 additions and 6 deletions

View file

@ -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;
}