mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05:00
gst: do some extra checks
This commit is contained in:
parent
37ae4e80c3
commit
c86673b557
2 changed files with 11 additions and 3 deletions
|
|
@ -50,7 +50,11 @@ gst_pinos_clock_get_internal_time (GstClock * clock)
|
|||
|
||||
pinos_stream_get_time (pclock->stream, &t);
|
||||
|
||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND, t.rate);
|
||||
if (t.rate)
|
||||
result = gst_util_uint64_scale_int (t.ticks, GST_SECOND, t.rate);
|
||||
else
|
||||
result = GST_CLOCK_TIME_NONE;
|
||||
|
||||
GST_DEBUG ("%"PRId64", %d %"PRId64, t.ticks, t.rate, result);
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue