pulsedeviceprovider: fix incorrect usage of GST_ELEMENT_ERROR

The provider is not a GStreamer element.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5354>
This commit is contained in:
Olivier Blin 2023-09-19 09:14:31 +02:00 committed by Tim-Philipp Müller
parent 0f18fe67be
commit ea2e829452

View file

@ -440,8 +440,8 @@ gst_pulse_device_provider_probe (GstDeviceProvider * provider)
state = pa_context_get_state (c);
if (!PA_CONTEXT_IS_GOOD (state)) {
GST_ELEMENT_ERROR (self, RESOURCE, FAILED, ("Failed to connect: %s",
pa_strerror (pa_context_errno (c))), (NULL));
GST_ERROR_OBJECT (self, "Failed to connect: %s",
pa_strerror (pa_context_errno (c)));
goto failed;
}