projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
807f2a9
)
libpulse: don't support pa_context_get_card_info_list() on servers that cannot handle it
author
Lennart Poettering
<lennart@poettering.net>
Thu, 10 Sep 2009 00:16:00 +0000
(
02:16
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 10 Sep 2009 00:16:00 +0000
(
02:16
+0200)
src/pulse/introspect.c
patch
|
blob
|
history
diff --git
a/src/pulse/introspect.c
b/src/pulse/introspect.c
index
27a587c
..
100413e
100644
(file)
--- 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);
}