yet anotrher fix for slow links
authorLennart Poettering <lennart@poettering.net>
Wed, 12 Apr 2006 23:19:07 +0000 (23:19 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Apr 2006 23:19:07 +0000 (23:19 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@692 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/utils/pacat.c

index 4d3302a..1e22656 100644 (file)
@@ -374,7 +374,7 @@ static void sigusr1_signal_callback(pa_mainloop_api*m, pa_signal_event *e, int s
 static void time_event_callback(pa_mainloop_api*m, pa_time_event *e, const struct timeval *tv, void *userdata) {
     struct timeval next;
     
-    if (stream) {
+    if (stream && pa_stream_get_state(stream) == PA_STREAM_READY) {
         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)));