jack: Use av_strerror
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 26 Oct 2014 13:02:45 +0000 (14:02 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 29 Oct 2014 16:54:43 +0000 (16:54 +0000)
libavdevice/jack_audio.c

index 8ce3321..7bdc229 100644 (file)
@@ -289,8 +289,11 @@ static int audio_read_packet(AVFormatContext *context, AVPacket *pkt)
             av_log(context, AV_LOG_ERROR,
                    "Input error: timed out when waiting for JACK process callback output\n");
         } else {
+            char errbuf[128];
+            int ret = AVERROR(errno);
+            av_strerror(ret, errbuf, sizeof(errbuf));
             av_log(context, AV_LOG_ERROR, "Error while waiting for audio packet: %s\n",
-                   strerror(errno));
+                   errbuf);
         }
         if (!self->client)
             av_log(context, AV_LOG_ERROR, "Input error: JACK server is gone\n");