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/5349>
This commit is contained in:
Olivier Blin 2023-09-19 09:14:31 +02:00
parent e769ae3dbe
commit 4b891639da

View file

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