[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.12-104-g08cf9db
Lennart Poettering
gitmailer-noreply at 0pointer.de
Wed Oct 1 16:16:02 PDT 2008
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 54afcf25980662d3033328705ec481c62b223e56 (commit)
- Log -----------------------------------------------------------------
08cf9db... properly parse response to pa_stream_set_buffer_attr() calls. closes #370
-----------------------------------------------------------------------
Summary of changes:
src/pulse/stream.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
commit 08cf9db0d17f8e2cfc68976fd96f0374721cdf22
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 2 01:15:58 2008 +0200
properly parse response to pa_stream_set_buffer_attr() calls. closes #370
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index ababe17..00aa1cf 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -2010,7 +2010,6 @@ static void stream_set_buffer_attr_callback(pa_pdispatch *pd, uint32_t command,
success = 0;
} else {
-
if (o->stream->direction == PA_STREAM_PLAYBACK) {
if (pa_tagstruct_getu32(t, &o->stream->buffer_attr.maxlength) < 0 ||
pa_tagstruct_getu32(t, &o->stream->buffer_attr.tlength) < 0 ||
@@ -2027,6 +2026,20 @@ static void stream_set_buffer_attr_callback(pa_pdispatch *pd, uint32_t command,
}
}
+ if (o->stream->context->version >= 13) {
+ pa_usec_t usec;
+
+ if (pa_tagstruct_get_usec(t, &usec) < 0) {
+ pa_context_fail(o->context, PA_ERR_PROTOCOL);
+ goto finish;
+ }
+
+ if (o->stream->direction == PA_STREAM_RECORD)
+ o->stream->timing_info.configured_source_usec = usec;
+ else
+ o->stream->timing_info.configured_sink_usec = usec;
+ }
+
if (!pa_tagstruct_eof(t)) {
pa_context_fail(o->context, PA_ERR_PROTOCOL);
goto finish;
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list