[polypaudio-commits] r955 - /trunk/src/utils/padsp.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue May 23 17:42:31 PDT 2006


Author: lennart
Date: Wed May 24 02:42:30 2006
New Revision: 955

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=955&root=polypaudio&view=rev
Log:
fix playback of small sound files

Modified:
    trunk/src/utils/padsp.c

Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=955&root=polypaudio&r1=954&r2=955&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Wed May 24 02:42:30 2006
@@ -977,7 +977,7 @@
     for (;;) {
         int l;
         
-        if (i->thread_fd < 0 || !i->stream)
+        if (i->thread_fd < 0)
             break;
         
         if (ioctl(i->thread_fd, SIOCINQ, &l) < 0) {
@@ -985,8 +985,10 @@
             break;
         }
 
-        if (!l)
-            break;
+        if (!l) {
+            ret = 0;
+            break;
+        }
         
         pa_threaded_mainloop_wait(i->mainloop);
     }




More information about the pulseaudio-commits mailing list