mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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>
This commit is contained in:
parent
0f18fe67be
commit
ea2e829452
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue