From ea2e829452e57fdb965ef27dfaf7aa35a679be6e Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 19 Sep 2023 09:14:31 +0200 Subject: [PATCH] pulsedeviceprovider: fix incorrect usage of GST_ELEMENT_ERROR The provider is not a GStreamer element. Part-of: --- subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c b/subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c index dbc7c10d92..6763ab6eef 100644 --- a/subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c +++ b/subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c @@ -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; }