pulse: fix discovery of newly added devices

Fix regression introduced in 7bc5e28d85
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>
This commit is contained in:
Guillaume Desmottes 2020-06-15 13:05:49 +02:00 committed by GStreamer Merge Bot
parent 87d4374655
commit 27ced4c8e6

View file

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