pulsedeviceprovider: fix incorrect usage of GST_ELEMENT_ERROR
authorOlivier Blin <olivier.blin@softathome.com>
Tue, 19 Sep 2023 07:14:31 +0000 (09:14 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 19 Sep 2023 13:09:46 +0000 (14:09 +0100)
The provider is not a GStreamer element.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5354>

subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c

index dbc7c10d921a171ec060fc353039e3654e508d74..6763ab6eefa6fe62e11c69f63396048c2795f54a 100644 (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;
     }