[pulseaudio-commits] src/pulse

Arun Raghavan arun at kemper.freedesktop.org
Thu Jun 28 07:33:52 PDT 2012


 src/pulse/glib-mainloop.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8b01695a0eb30a1b4941b14936dea19e8898e11e
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Thu Jun 28 19:31:37 2012 +0530

    glib: Stop using g_source_get_current_time()
    
    This function is now marked as deprecated. It is functionally identical
    to g_get_current_time(), so we use that instead. The GLib API docs
    suggest g_source_get_time(), but that does not provide wallclock time
    (which is what the pa_time_event API expects), so we don't use it.

diff --git a/src/pulse/glib-mainloop.c b/src/pulse/glib-mainloop.c
index 35c9c6a..bd24913 100644
--- a/src/pulse/glib-mainloop.c
+++ b/src/pulse/glib-mainloop.c
@@ -489,7 +489,7 @@ static gboolean prepare_func(GSource *source, gint *timeout) {
         t = find_next_time_event(g);
         g_assert(t);
 
-        g_source_get_current_time(source, &now);
+        g_get_current_time(&now);
         tvnow.tv_sec = now.tv_sec;
         tvnow.tv_usec = now.tv_usec;
 
@@ -520,7 +520,7 @@ static gboolean check_func(GSource *source) {
         t = find_next_time_event(g);
         g_assert(t);
 
-        g_source_get_current_time(source, &now);
+        g_get_current_time(&now);
         tvnow.tv_sec = now.tv_sec;
         tvnow.tv_usec = now.tv_usec;
 
@@ -565,7 +565,7 @@ static gboolean dispatch_func(GSource *source, GSourceFunc callback, gpointer us
         t = find_next_time_event(g);
         g_assert(t);
 
-        g_source_get_current_time(source, &now);
+        g_get_current_time(&now);
         tvnow.tv_sec = now.tv_sec;
         tvnow.tv_usec = now.tv_usec;
 



More information about the pulseaudio-commits mailing list