pulse: fix discovery of newly added devices
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Mon, 15 Jun 2020 11:05:49 +0000 (13:05 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 18 Jun 2020 14:05:42 +0000 (14:05 +0000)
Fix regression introduced in 7bc5e28d85992b03e5852879b8d4d96043496caf
preventing the device provider to send the device-added message for new
devices.
By early returning the patch was discarding add/remove events.

Fix #735

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/626>

ext/pulse/pulsedeviceprovider.c

index 4f69bf2..dbc7c10 100644 (file)
@@ -341,8 +341,6 @@ context_subscribe_cb (pa_context * context, pa_subscription_event_type_t type,
   if (facility == PA_SUBSCRIPTION_EVENT_SERVER ||
       facility != PA_SUBSCRIPTION_EVENT_CHANGE) {
     pa_context_get_server_info (self->context, get_server_info_cb, self);
-
-    return;
   }
 
   if (facility != PA_SUBSCRIPTION_EVENT_SOURCE &&