[pulseaudio-commits] r1419 - /trunk/src/utils/padsp.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Jan 4 06:06:26 PST 2007
Author: ossman
Date: Thu Jan 4 15:06:24 2007
New Revision: 1419
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1419&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Fix error messages for failure connecting streams.
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=3D1=
419&root=3Dpulseaudio&r1=3D1418&r2=3D1419&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Thu Jan 4 15:06:24 2007
@@ -909,7 +909,15 @@
break;
=
case PA_STREAM_FAILED:
- debug(DEBUG_LEVEL_NORMAL, __FILE__": pa_stream_connect_playbac=
k() failed: %s\n", pa_strerror(pa_context_errno(i->context)));
+ if (s =3D=3D i->play_stream) {
+ debug(DEBUG_LEVEL_NORMAL,
+ __FILE__": pa_stream_connect_playback() failed: %s\n",
+ pa_strerror(pa_context_errno(i->context)));
+ } else if (s =3D=3D i->rec_stream) {
+ debug(DEBUG_LEVEL_NORMAL,
+ __FILE__": pa_stream_connect_record() failed: %s\n",
+ pa_strerror(pa_context_errno(i->context)));
+ }
fd_info_shutdown(i);
break;
=
@@ -981,7 +989,7 @@
attr.fragsize =3D i->fragment_size;
=
if (pa_stream_connect_record(i->rec_stream, NULL, &attr, PA_STREAM_INT=
ERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE) < 0) {
- debug(DEBUG_LEVEL_NORMAL, __FILE__": pa_stream_connect_playback() =
failed: %s\n", pa_strerror(pa_context_errno(i->context)));
+ debug(DEBUG_LEVEL_NORMAL, __FILE__": pa_stream_connect_record() fa=
iled: %s\n", pa_strerror(pa_context_errno(i->context)));
goto fail;
}
=
More information about the pulseaudio-commits
mailing list