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; }