mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
jackaudiosrc: fix error message code
And also post 'not found' error if jackd is not even installed.
This commit is contained in:
parent
a1b1d19105
commit
26a3a12513
1 changed files with 2 additions and 2 deletions
|
@ -355,12 +355,12 @@ gst_jack_ring_buffer_open_device (GstRingBuffer * buf)
|
|||
/* ERRORS */
|
||||
could_not_open:
|
||||
{
|
||||
if (status & JackServerFailed) {
|
||||
if (status & (JackServerFailed | JackFailure)) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
|
||||
(_("Jack server not found")),
|
||||
("Cannot connect to the Jack server (status %d)", status));
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_WRITE,
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ,
|
||||
(NULL), ("Jack client open error (status %d)", status));
|
||||
}
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue