From f66fc2a694abeb767dba14b271ab0c676ed63253 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 10 Dec 2019 17:13:45 -0500 Subject: [PATCH] osxaudio: Remove deprecated GTimeVal --- sys/osxaudio/gstosxcoreaudiohal.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/osxaudio/gstosxcoreaudiohal.c b/sys/osxaudio/gstosxcoreaudiohal.c index 4505c29..f649e4f 100644 --- a/sys/osxaudio/gstosxcoreaudiohal.c +++ b/sys/osxaudio/gstosxcoreaudiohal.c @@ -619,12 +619,11 @@ _audio_stream_change_format (AudioStreamID stream_id, * it is also not atomic in its behaviour. * Therefore we check 4 times before we really give up. */ for (i = 0; i < 4; i++) { - GTimeVal timeout; + gint64 timeout; - g_get_current_time (&timeout); - g_time_val_add (&timeout, 250000); + timeout = g_get_monotonic_time () + 250000; - if (!g_cond_wait_until (&prop_mutex.cond, &prop_mutex.lock, timeout.tv_sec)) { + if (!g_cond_wait_until (&prop_mutex.cond, &prop_mutex.lock, timeout)) { GST_LOG ("timeout..."); } -- 2.7.4