[pulseaudio-commits] r2295 - in /branches/glitch-free/src/pulsecore: sink.c source.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Mon Apr 21 19:46:19 PDT 2008
Author: lennart
Date: Tue Apr 22 04:46:19 2008
New Revision: 2295
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2295&root=pulseaudio&view=rev
Log:
if no latency was configure for a sink/source, fill in the max latency automatically
Modified:
branches/glitch-free/src/pulsecore/sink.c
branches/glitch-free/src/pulsecore/source.c
Modified: branches/glitch-free/src/pulsecore/sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/sink.c?rev=2295&root=pulseaudio&r1=2294&r2=2295&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/sink.c (original)
+++ branches/glitch-free/src/pulsecore/sink.c Tue Apr 22 04:46:19 2008
@@ -1298,6 +1298,9 @@
if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_REQUESTED_LATENCY, &usec, 0, NULL) < 0)
return 0;
+ if (usec == (pa_usec_t) -1)
+ usec = s->max_latency;
+
return usec;
}
Modified: branches/glitch-free/src/pulsecore/source.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/source.c?rev=2295&root=pulseaudio&r1=2294&r2=2295&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/source.c (original)
+++ branches/glitch-free/src/pulsecore/source.c Tue Apr 22 04:46:19 2008
@@ -754,6 +754,9 @@
if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_REQUESTED_LATENCY, &usec, 0, NULL) < 0)
return 0;
+ if (usec == (pa_usec_t) -1)
+ usec = s->max_latency;
+
return usec;
}
More information about the pulseaudio-commits
mailing list