pipewire: fix null deref in 0.3 API

Signed-off-by: Ambareesh Balaji <ambareeshbalaji@gmail.com>
dev
Ambareesh Balaji 4 years ago committed by Ambareesh "Amby" Balaji
parent ae12b9596d
commit a67393c353
  1. 1
      pipewire/pipewire-plugin.c

@ -856,6 +856,7 @@ weston_pipewire_init(struct weston_pipewire *pipewire)
#if PW_CHECK_VERSION(0, 2, 90) #if PW_CHECK_VERSION(0, 2, 90)
pipewire->context = pw_context_new(pipewire->loop, NULL, 0); pipewire->context = pw_context_new(pipewire->loop, NULL, 0);
pipewire->core = pw_context_connect(pipewire->context, NULL, 0);
#else #else
pipewire->core = pw_core_new(pipewire->loop, NULL); pipewire->core = pw_core_new(pipewire->loop, NULL);
pipewire->t = pw_core_get_type(pipewire->core); pipewire->t = pw_core_get_type(pipewire->core);

Loading…
Cancel
Save