[polypaudio-commits] r1022 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Jun 16 14:08:36 PDT 2006
Author: ossman
Date: Fri Jun 16 23:08:35 2006
New Revision: 1022
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1022&root=polypaudio&view=rev
Log:
Creating a stream might take some time, so check that it's in the right state
before transferring data.
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=1022&root=polypaudio&r1=1021&r2=1022&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Fri Jun 16 23:08:35 2006
@@ -767,7 +767,7 @@
flags = 0;
- if (i->play_stream) {
+ if ((i->play_stream) && (pa_stream_get_state(i->play_stream) == PA_STREAM_READY)) {
n = pa_stream_writable_size(i->play_stream);
if (n == (size_t)-1) {
@@ -810,7 +810,7 @@
flags |= PA_IO_EVENT_INPUT;
}
- if (i->rec_stream) {
+ if ((i->rec_stream) && (pa_stream_get_state(i->rec_stream) == PA_STREAM_READY)) {
n = pa_stream_readable_size(i->rec_stream);
if (n == (size_t)-1) {
More information about the pulseaudio-commits
mailing list