mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +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/5349>
This commit is contained in:
parent
e769ae3dbe
commit
4b891639da
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