[polypaudio-commits] r659 - /trunk/src/modules/module-alsa-sink.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Apr 7 15:45:09 PDT 2006
Author: lennart
Date: Sat Apr 8 00:45:08 2006
New Revision: 659
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=659&root=polypaudio&view=rev
Log:
minor cleanups
Modified:
trunk/src/modules/module-alsa-sink.c
Modified: trunk/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-alsa-sink.c?rev=659&root=polypaudio&r1=658&r2=659&view=diff
==============================================================================
--- trunk/src/modules/module-alsa-sink.c (original)
+++ trunk/src/modules/module-alsa-sink.c Sat Apr 8 00:45:08 2006
@@ -124,7 +124,7 @@
continue;
}
- pa_log(__FILE__": snd_pcm_writei() failed");
+ pa_log(__FILE__": snd_pcm_writei() failed: %s", snd_strerror(frames));
return;
}
@@ -176,17 +176,19 @@
pa_usec_t r = 0;
struct userdata *u = s->userdata;
snd_pcm_sframes_t frames;
+ int err;
+
assert(s && u && u->sink);
- if (snd_pcm_delay(u->pcm_handle, &frames) < 0) {
- pa_log(__FILE__": failed to get delay");
+ if ((err = snd_pcm_delay(u->pcm_handle, &frames)) < 0) {
+ pa_log(__FILE__": failed to get delay: %s", snd_strerror(err));
s->get_latency = NULL;
return 0;
}
if (frames < 0)
frames = 0;
-
+
r += pa_bytes_to_usec(frames * u->frame_size, &s->sample_spec);
if (u->memchunk.memblock)
More information about the pulseaudio-commits
mailing list