jackaudiosrc: fix error message code

And also post 'not found' error if jackd is not even installed.
This commit is contained in:
Tim-Philipp Müller 2011-08-13 16:51:22 +01:00
parent a1b1d19105
commit 26a3a12513

View file

@ -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;