diff options
author | wm4 <wm4@nowhere> | 2020-08-28 19:57:23 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-08-28 19:57:23 +0200 |
commit | 2c7139753d1e1530da44b781e9ae7c65874bb677 (patch) | |
tree | aa7afc251095d47c284880086c47b6bd671caa21 /filters/filter.h | |
parent | b9f52105aec5fe0ffa69bb56229c673d9589ff29 (diff) | |
download | mpv-2c7139753d1e1530da44b781e9ae7c65874bb677.tar.bz2 mpv-2c7139753d1e1530da44b781e9ae7c65874bb677.tar.xz |
filter: add filter priority thing
This is a kind of bad hack (with bad implementation) to paint over other
problems of the filter system. The main problem is that some filters
might be left with pending frames if the filter runner is "paused",
which we don't want. To be used in a later commit.
Diffstat (limited to 'filters/filter.h')
-rw-r--r-- | filters/filter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filters/filter.h b/filters/filter.h index 34cfcf0f54..19aafc6f3d 100644 --- a/filters/filter.h +++ b/filters/filter.h @@ -346,6 +346,10 @@ const char *mp_filter_get_name(struct mp_filter *f); // Change mp_filter_get_name() return value. void mp_filter_set_name(struct mp_filter *f, const char *name); +// Set filter priority. A higher priority gets processed first. Also, high +// priority filters disable "interrupting" the filter graph. +void mp_filter_set_high_priority(struct mp_filter *filter, bool pri); + // Get a pin from f->pins[] for which mp_pin_get_name() returns the same name. // If name is NULL, always return NULL. struct mp_pin *mp_filter_get_named_pin(struct mp_filter *f, const char *name); |