diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-29 21:58:32 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-29 21:59:30 +0100 |
commit | 66b2a3fa31bdc8994effbacca02f167ba8bfe0a5 (patch) | |
tree | 9ce553075e6b578101976d6c586073ed10ba7a92 /libavdevice/jack_audio.c | |
parent | 7729f4331296f8292062f0ea7604a30576a70f2c (diff) | |
parent | 2cd28693a59050717cb7da6cb229e606b1dee356 (diff) | |
download | ffmpeg-streaming-66b2a3fa31bdc8994effbacca02f167ba8bfe0a5.zip ffmpeg-streaming-66b2a3fa31bdc8994effbacca02f167ba8bfe0a5.tar.gz |
Merge commit '2cd28693a59050717cb7da6cb229e606b1dee356'
* commit '2cd28693a59050717cb7da6cb229e606b1dee356':
jack: Use av_strerror
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 2fda8ad..0c52a8e 100644 --- a/libavdevice/jack_audio.c +++ b/libavdevice/jack_audio.c @@ -287,8 +287,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"); |