[polypaudio-commits] r691 - /trunk/src/utils/pacat.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Apr 12 16:12:55 PDT 2006


Author: lennart
Date: Thu Apr 13 01:12:54 2006
New Revision: 691

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=691&root=polypaudio&view=rev
Log:
small fix to deal properly with slow links

Modified:
    trunk/src/utils/pacat.c

Modified: trunk/src/utils/pacat.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/pacat.c?rev=691&root=polypaudio&r1=690&r2=691&view=diff
==============================================================================
--- trunk/src/utils/pacat.c (original)
+++ trunk/src/utils/pacat.c Thu Apr 13 01:12:54 2006
@@ -374,10 +374,13 @@
 static void time_event_callback(pa_mainloop_api*m, pa_time_event *e, const struct timeval *tv, void *userdata) {
     struct timeval next;
     
-    if (!stream)
-        return;
-    
-    pa_operation_unref(pa_stream_update_timing_info(stream, stream_update_timing_callback, NULL));
+    if (stream) {
+        pa_operation *o;
+        if (!(o = pa_stream_update_timing_info(stream, stream_update_timing_callback, NULL)))
+            fprintf(stderr, "pa_stream_update_timing_info() failed: %s\n", pa_strerror(pa_context_errno(context)));
+        else
+            pa_operation_unref(o);
+    }
 
     pa_gettimeofday(&next);
     pa_timeval_add(&next, TIME_EVENT_USEC);




More information about the pulseaudio-commits mailing list