History

avfilter/f_graphmonitor: Deduplicate AVClasses

Andreas Rheinhardt committed 5 years ago

Commit 0eb1f451 parent 9ceec281 file · +3 −6Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/f_graphmonitor.c+3−6
@@ -386,9 +386,9 @@ static int config_output(AVFilterLink *outlink) · 385 unmodified lines
386386 return 0;
387387 }
388388
389−#if CONFIG_GRAPHMONITOR_FILTER
389+AVFILTER_DEFINE_CLASS_EXT(graphmonitor, "(a)graphmonitor", graphmonitor_options);
390390
391−AVFILTER_DEFINE_CLASS(graphmonitor);
391+#if CONFIG_GRAPHMONITOR_FILTER
392392
393393 static const AVFilterPad graphmonitor_inputs[] = {
394394 {
@@ -420,9 +420,6 @@ const AVFilter ff_vf_graphmonitor = { · 25 unmodified lines
420420
421421 #if CONFIG_AGRAPHMONITOR_FILTER
422422
423−#define agraphmonitor_options graphmonitor_options
424−AVFILTER_DEFINE_CLASS(agraphmonitor);
425−
426423 static const AVFilterPad agraphmonitor_inputs[] = {
427424 {
428425 .name = "default",
@@ -441,8 +438,8 @@ static const AVFilterPad agraphmonitor_outputs[] = { · 12 unmodified lines
441438 const AVFilter ff_avf_agraphmonitor = {
442439 .name = "agraphmonitor",
443440 .description = NULL_IF_CONFIG_SMALL("Show various filtergraph stats."),
441+ .priv_class = &graphmonitor_class,
444442 .priv_size = sizeof(GraphMonitorContext),
445− .priv_class = &agraphmonitor_class,
446443 .query_formats = query_formats,
447444 .activate = activate,
448445 FILTER_INPUTS(agraphmonitor_inputs),

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