diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-09-07 17:40:32 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-09-07 17:41:50 +0200 |
commit | 368366b88d14e881b580c91d001557d37749757d (patch) | |
tree | 4527e7de9225e00664d14736fa75ccb5856c5d12 | |
parent | a652edce0afc80916a87ebccca319d517989a128 (diff) |
alsa: avoid loading the plugin when linked against 0.2
chromium is linked against 0.2, avoid trying to load the alsa
plugin that is linked against 0.3
See #275
-rw-r--r-- | pipewire-alsa/alsa-plugins/pcm_pipewire.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pipewire-alsa/alsa-plugins/pcm_pipewire.c b/pipewire-alsa/alsa-plugins/pcm_pipewire.c index f2db3af5..38e59e0b 100644 --- a/pipewire-alsa/alsa-plugins/pcm_pipewire.c +++ b/pipewire-alsa/alsa-plugins/pcm_pipewire.c @@ -983,7 +983,9 @@ SND_PCM_PLUGIN_DEFINE_FUNC(pipewire) uint32_t flags = 0; int err; - pw_init(NULL, NULL); + pw_init(NULL, NULL); + if (strstr(pw_get_library_version(), "0.2") != NULL) + return -ENOTSUP; snd_config_for_each(i, next, conf) { snd_config_t *n = snd_config_iterator_entry(i); |