* commit '1565cbc65cbb9f95c11367314a080068895e0cf0': lavfi: make avfilter_free() remove the filter from its graph. Conflicts: libavfilter/avfilter.c libavfilter/avfiltergraph.c libavfilter/graphparser.c
Showing the changes to libavfilter/avfilter.c (1 of 5 files). Show all
Unified · Split
| @@ -571,6 +571,9 @@ void avfilter_free(AVFilterContext *filter) · 570 unmodified lines | ||
| 571 | 571 | if (!filter) |
| 572 | 572 | return; |
| 573 | 573 | |
| 574 | + if (filter->graph) | |
| 575 | + ff_filter_graph_remove_filter(filter->graph, filter); | |
| 576 | + | |
| 574 | 577 | if (filter->filter->uninit) |
| 575 | 578 | filter->filter->uninit(filter); |
| 576 | 579 | |