History

avdevice/jack: use av_err2str to simplify code

No need to explicitly specify the buffer here as it is only ever passed to av_log, so av_err2str can be used.

Marvin Scholz committed 2 years ago

Commit 0c84b971 parent 5dfc5471 file · +1 −3Browse files

Unified · Split

libavdevice/jack.c+1−3
@@ -291,11 +291,9 @@ static int audio_read_packet(AVFormatContext *context, AVPacket *pkt) · 290 unmodified lines
291291 av_log(context, AV_LOG_ERROR,
292292 "Input error: timed out when waiting for JACK process callback output\n");
293293 } else {
294− char errbuf[128];
295294 int ret = AVERROR(errno);
296− av_strerror(ret, errbuf, sizeof(errbuf));
297295 av_log(context, AV_LOG_ERROR, "Error while waiting for audio packet: %s\n",
298− errbuf);
296+ av_err2str(ret));
299297 }
300298 if (!self->client)
301299 av_log(context, AV_LOG_ERROR, "Input error: JACK server is gone\n");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t