From 26a3a125133c1d0f65a6e03c78926c5a2f1ae294 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 13 Aug 2011 16:51:22 +0100 Subject: [PATCH] jackaudiosrc: fix error message code And also post 'not found' error if jackd is not even installed. --- ext/jack/gstjackaudiosrc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/jack/gstjackaudiosrc.c b/ext/jack/gstjackaudiosrc.c index d5a8733..3aa6e93 100644 --- a/ext/jack/gstjackaudiosrc.c +++ b/ext/jack/gstjackaudiosrc.c @@ -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; -- 2.7.4