diff options
author | Olivier Blin <olivier.blin@softathome.com> | 2023-09-19 09:14:31 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2023-09-19 14:09:46 +0100 |
commit | ea2e829452e57fdb965ef27dfaf7aa35a679be6e (patch) | |
tree | 4f14dd38bb5fe92d106cddf9469b154f8220d509 /subprojects/gst-plugins-good | |
parent | 0f18fe67be7ccca8586b3dbe043cea86036981d9 (diff) |
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>
Diffstat (limited to 'subprojects/gst-plugins-good')
-rw-r--r-- | subprojects/gst-plugins-good/ext/pulse/pulsedeviceprovider.c | 4 |
1 files 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; } |