[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] core-subscribe: add PA_SUBSCRIPTION_EVENT_CARD in dump_event

Tanu Kaskinen gitlab at gitlab.freedesktop.org
Wed Jun 10 09:15:31 UTC 2020



Tanu Kaskinen pushed to branch master at PulseAudio / pulseaudio


Commits:
1778f76c by Libin Yang at 2020-06-10T09:11:06+00:00
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 <libin.yang at intel.com>

- - - - -


1 changed file:

- src/pulsecore/core-subscribe.c


Changes:

=====================================
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[] = {



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/1778f76c7826abf0f854993aa524dc8e5dabe8ee

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/1778f76c7826abf0f854993aa524dc8e5dabe8ee
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20200610/ae46b666/attachment.htm>


More information about the pulseaudio-commits mailing list