diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-26 14:02:45 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-29 16:54:43 +0000 |
commit | 2cd28693a59050717cb7da6cb229e606b1dee356 (patch) | |
tree | 3fbcd2a5b1360ac424840bd4d11bb9acf685bfa0 /libavdevice/jack_audio.c | |
parent | 043ea6f7bfc59399b6b3659da785ec4cc68a008e (diff) | |
download | ffmpeg-streaming-2cd28693a59050717cb7da6cb229e606b1dee356.zip ffmpeg-streaming-2cd28693a59050717cb7da6cb229e606b1dee356.tar.gz |
jack: Use av_strerror
Diffstat (limited to 'libavdevice/jack_audio.c')
-rw-r--r-- | libavdevice/jack_audio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c index 8ce3321..7bdc229 100644 --- a/libavdevice/jack_audio.c +++ b/libavdevice/jack_audio.c @@ -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"); |