summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-10 02:16:00 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-10 02:16:00 +0200
commit12c7460e404c94a364a23434ca28ec2bcc698431 (patch)
tree3ee84543bd9ccae0b3b969b3eecb875c0adac52f
parent807f2a9923572a8d88e10672d0cb5886688bb9ff (diff)
libpulse: don't support pa_context_get_card_info_list() on servers that cannot handle itv0.9.16
-rw-r--r--src/pulse/introspect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulse/introspect.c b/src/pulse/introspect.c
index 27a587cb4..100413ee5 100644
--- a/src/pulse/introspect.c
+++ b/src/pulse/introspect.c
@@ -834,6 +834,8 @@ pa_operation* pa_context_get_card_info_by_name(pa_context *c, const char*name, p
}
pa_operation* pa_context_get_card_info_list(pa_context *c, pa_card_info_cb_t cb, void *userdata) {
+ PA_CHECK_VALIDITY_RETURN_NULL(c, c->version >= 15, PA_ERR_NOTSUPPORTED);
+
return pa_context_send_simple_command(c, PA_COMMAND_GET_CARD_INFO_LIST, context_get_card_info_callback, (pa_operation_cb_t) cb, userdata);
}