History

avfilter/avfilter: #if ff_tlog_link() away when empty

It is currently calling av_channel_layout_describe() unnecessarily.

Andreas Rheinhardt committed 4 years ago

Commit e10774a1 parent f4af5042 files · +6 −0Browse files

Unified · Split

2 files
  1. libavfilter/avfilter.c +2 −0
  2. libavfilter/internal.h +4 −0
libavfilter/avfilter.c+2−0
@@ -381,6 +381,7 @@ int avfilter_config_links(AVFilterContext *filter) · 380 unmodified lines
381381 return 0;
382382 }
383383
384+#ifdef TRACE
384385 void ff_tlog_link(void *ctx, AVFilterLink *link, int end)
385386 {
386387 if (link->type == AVMEDIA_TYPE_VIDEO) {
@@ -404,6 +405,7 @@ void ff_tlog_link(void *ctx, AVFilterLink *link, int end) · 17 unmodified lines
404405 end ? "\n" : "");
405406 }
406407 }
408+#endif
407409
408410 int ff_request_frame(AVFilterLink *link)
409411 {
libavfilter/internal.h+4−0
@@ -268,7 +268,11 @@ void ff_command_queue_pop(AVFilterContext *filter); · 267 unmodified lines
268268
269269 char *ff_get_ref_perms_string(char *buf, size_t buf_size, int perms);
270270
271+#ifdef TRACE
271272 void ff_tlog_link(void *ctx, AVFilterLink *link, int end);
273+#else
274+#define ff_tlog_link(ctx, link, end) do { } while(0)
275+#endif
272276
273277 /**
274278 * Append a new input/output pad to the filter's list of such pads.

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