[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.15-test5-46-ga467bec
Lennart Poettering
gitmailer-noreply at 0pointer.de
Mon Mar 23 11:38:51 PDT 2009
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 08154554b0cdce6d16816536211718bf14ff33ff (commit)
- Log -----------------------------------------------------------------
a467bec pulse: check context (do not user pstream when NULL)
-----------------------------------------------------------------------
Summary of changes:
src/pulse/stream.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
commit a467bec42352c8e86cbc4c680a19a376405946ba
Author: Marc-André Lureau <marc-andre.lureau at nokia.com>
Date: Mon Mar 16 16:39:28 2009 +0200
pulse: check context (do not user pstream when NULL)
diff --git a/src/pulse/stream.c b/src/pulse/stream.c
index 9a0ea0f..a7fccc8 100644
--- a/src/pulse/stream.c
+++ b/src/pulse/stream.c
@@ -948,6 +948,7 @@ static int create_stream(
PA_CHECK_VALIDITY(s->context, s->context->version >= 12 || !(flags & PA_STREAM_VARIABLE_RATE), PA_ERR_NOTSUPPORTED);
PA_CHECK_VALIDITY(s->context, s->context->version >= 13 || !(flags & PA_STREAM_PEAK_DETECT), PA_ERR_NOTSUPPORTED);
+ PA_CHECK_VALIDITY(s->context, s->context->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
/* Althought some of the other flags are not supported on older
* version, we don't check for them here, because it doesn't hurt
* when they are passed but actually not supported. This makes
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list