From 1778f76c7826abf0f854993aa524dc8e5dabe8ee Mon Sep 17 00:00:00 2001 From: Libin Yang Date: Mon, 8 Jun 2020 10:34:44 -0400 Subject: [PATCH] core-subscribe: add PA_SUBSCRIPTION_EVENT_CARD in dump_event fac_table[] lacks of PA_SUBSCRIPTION_EVENT_CARD item. This will cause pulseaudio crash when it tries to dump the PA_SUBSCRIPTION_EVENT_CARD event when DEBUG is defined. Signed-off-by: Libin Yang --- src/pulsecore/core-subscribe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pulsecore/core-subscribe.c b/src/pulsecore/core-subscribe.c index 61c779b66..8c91059f6 100644 --- a/src/pulsecore/core-subscribe.c +++ b/src/pulsecore/core-subscribe.c @@ -133,7 +133,8 @@ static void dump_event(const char * prefix, pa_subscription_event*e) { [PA_SUBSCRIPTION_EVENT_CLIENT] = "CLIENT", [PA_SUBSCRIPTION_EVENT_SAMPLE_CACHE] = "SAMPLE_CACHE", [PA_SUBSCRIPTION_EVENT_SERVER] = "SERVER", - [PA_SUBSCRIPTION_EVENT_AUTOLOAD] = "AUTOLOAD" + [PA_SUBSCRIPTION_EVENT_AUTOLOAD] = "AUTOLOAD", + [PA_SUBSCRIPTION_EVENT_CARD] = "CARD" }; const char * const type_table[] = {