jackaudiosrc: fix error message code
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 13 Aug 2011 15:51:22 +0000 (16:51 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 13 Aug 2011 15:52:53 +0000 (16:52 +0100)
And also post 'not found' error if jackd is not even installed.

ext/jack/gstjackaudiosrc.c

index d5a8733..3aa6e93 100644 (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;