mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
pulse: check context (do not user pstream when NULL)
This commit is contained in:
parent
08154554b0
commit
a467bec423
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue