Add filter API to select either static or interactive filter chain
I'm trying to make a filter to process video through Vapoursynth engine and here's the problem - PTS changes are not allowed for the filter in the interactive chain. Not a big deal, lets just move it to the static chain. BUT the current code for choosing one of the filter chains is:
static void ThreadChangeFilters(vout_thread_t *vout,
<...>
e->name = name;
e->cfg = cfg;
if (!strcmp(e->name, "deinterlace") ||
!strcmp(e->name, "postproc")) {
vlc_array_append(&array_static, e);
} else {
vlc_array_append(&array_interactive, e);
And here's another one who faced the very same problem: https://github.com/walisser/vlc-filter-pipe