Browse Source

jack: Use av_strerror

tags/n2.5
Luca Barbato Vittorio Giovara 11 years ago
parent
commit
2cd28693a5
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavdevice/jack_audio.c

+ 4
- 1
libavdevice/jack_audio.c View 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");


Loading…
Cancel
Save